From 4b61df8396593f40148a1815478513f95a86d59a Mon Sep 17 00:00:00 2001 From: David Date: Fri, 24 Nov 2006 23:45:14 +0000 Subject: david - added size --- src/hash.h | 5 +++++ src/tests/xmlreadtest.cpp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/hash.h b/src/hash.h index dcf65ae..d847add 100644 --- a/src/hash.h +++ b/src/hash.h @@ -164,6 +164,11 @@ public: return nFilled; } + uint32_t size() + { + return nFilled; + } + uint32_t getDeleted() { return nDeleted; diff --git a/src/tests/xmlreadtest.cpp b/src/tests/xmlreadtest.cpp index 98d8a9e..d061810 100644 --- a/src/tests/xmlreadtest.cpp +++ b/src/tests/xmlreadtest.cpp @@ -20,8 +20,8 @@ int main( int argc, char *argv[] ) else if( argv[1][0] == 's' ) { XmlStringReader r( argv[2], true ); -// XmlWriter w( argv[3], "\t", r.detatchRoot() ); -// w.write(); + XmlFileWriter w(stdout, "\t", r.detatchRoot() ); + w.write(); } return 0; -- cgit v1.2.3