work on the streamer class. A little optimization to the string class. Formatting work.

This commit is contained in:
Lee Thomason
2012-01-25 17:16:23 -08:00
parent 5cae897775
commit 24767b05ab
3 changed files with 24 additions and 7 deletions

View File

@@ -256,11 +256,12 @@ private:
};
// FIXME: break out into string pointer stack
class StringStack
{
public:
StringStack();
~StringStack() { delete[] mem; }
~StringStack();
void Push( const char* str );
const char* Pop();
@@ -272,12 +273,12 @@ private:
INIT=10 // fixme, super small for testing
};
char* mem;
char pool[INIT];
int inUse; // includes null
int allocated; // bytes allocated
int nPositive; // number of strings with len > 0
};
class XMLStreamer
{
public: