Commit for Arthur.

getFullText, object layout.
STUObject code.
This commit is contained in:
JoelKatz
2012-03-16 17:04:18 -07:00
parent 672b976eb6
commit 99493c662a
3 changed files with 77 additions and 8 deletions

View File

@@ -27,20 +27,19 @@ protected:
boost::ptr_vector<SerializedType> data;
public:
STUObject() { ; }
virtual ~STUObject();
STUObject(const STUObject&);
STUObject& operator=(const STUObject&);
STUObject() : type(NULL) { ; }
STUObject(SOType *t) : type(t) { ; }
STUObject(SOType *t, SerializerIterator& u);
virtual ~STUObject() { ; }
int getLength() const;
SerializedTypeID getType() const { return STI_OBJECT; }
STUObject* duplicate() const { return new STUObject(*this); }
void add(Serializer& s) const;
std::string getFullText() const;
std::string getText() const;
void addObject(const SerializedType& t) { data.push_back(t.duplicate()); }
void giveObject(SerializedType* t) { data.push_back(t); }
const boost::ptr_vector<SerializedType>& peekData() const { return data; }