propane/TokenDefinition.h
2010-05-17 16:26:42 -04:00

24 lines
520 B
C++

#ifndef TOKENDEFINITION_H
#define TOKENDEFINITION_H
#include <string>
class TokenDefinition
{
public:
TokenDefinition();
bool create(const std::string & name,
const std::string & definition, const std::string & flags);
std::string getCString() const;
std::string getName() const { return m_name; }
bool getIgnored() const { return m_ignored; }
protected:
std::string m_name;
std::string m_definition;
bool m_ignored;
};
#endif