/* */ #ifndef _D_DATA_H_ #define _D_DATA_H_ #include "MetaEntry.h" #include using namespace std; class Data : public MetaEntry { private: int len; char* data; bool number; public: /** * This class stores the copy of data. So caller must take care of freeing * memory of data. */ Data(const char* data, int len, bool number = false); ~Data(); string toString() const; int toInt() const; long long int toLLInt() const; const char* getData() const; int getLen() const; bool isNumber() const; void accept(MetaEntryVisitor* v) const; }; #endif // _D_DATA_H_