#include "AbstractParser.h"

AbstractParser::AbstractParser(const char *resource) : _resource(NULL)
{
    //Could use strdup instead, but has bigger flash memory footprint :(, sticking to this technique instead.
    _resource = (char *) malloc((strlen(resource) * sizeof(char)) + 1); //+1 for the string terminating character
    strcpy(_resource, resource);
}

AbstractParser::~AbstractParser()
{
    free(_resource);
}
