62 unsigned int numWrittenBytes; |
62 unsigned int numWrittenBytes; |
63 |
63 |
64 // ==================================================================== |
64 // ==================================================================== |
65 // METHODS |
65 // METHODS |
66 ObjWriter (str path); |
66 ObjWriter (str path); |
67 ~ObjWriter (); |
|
68 void WriteString (char* s); |
67 void WriteString (char* s); |
69 void WriteString (const char* s); |
68 void WriteString (const char* s); |
70 void WriteString (str s); |
69 void WriteString (str s); |
71 void WriteBuffer (DataBuffer* buf); |
70 void WriteBuffer (DataBuffer* buf); |
72 void WriteBuffers (); |
71 void WriteBuffers (); |
75 DataBuffer* GetCurrentBuffer (); |
74 DataBuffer* GetCurrentBuffer (); |
76 |
75 |
77 unsigned int AddMark (int type, str name); |
76 unsigned int AddMark (int type, str name); |
78 unsigned int FindMark (int type, str name); |
77 unsigned int FindMark (int type, str name); |
79 unsigned int AddReference (unsigned int mark); |
78 unsigned int AddReference (unsigned int mark); |
|
79 void MoveMark (unsigned int mark); |
80 |
80 |
81 template <class T> void Write (T stuff) { |
81 template <class T> void Write (T stuff) { |
82 DataBuffer* buffer = GetCurrentBuffer (); |
82 DataBuffer* buffer = GetCurrentBuffer (); |
83 buffer->Write<T> (stuff); |
83 buffer->Write<T> (stuff); |
84 return; |
84 return; |