From 2a49987a29270e14b5a9396b0ab3b7b4588770c3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 28 Apr 2008 23:01:03 +0000 Subject: Apparently there were a number of things that weren't strict ISO C++, the new version of gcc complained about them, none of these changes will break backward compatibility, so I fixed them. I added more docs too, it seems. --- src/doxy/main.dox | 4 ++++ src/doxy/params.dox | 15 +++++++++++++++ src/doxy/plugins.dox | 17 +++++++++++++++++ src/doxy/taf.dox | 16 ++++++++++++++++ src/doxy/unittest.dox | 15 +++++++++++++++ src/exceptionbase.cpp | 1 + src/file.h | 2 ++ src/formula.h | 1 + src/hash.h | 4 ++-- src/itoserver.h | 1 + src/list.h | 4 ++-- src/logger.cpp | 1 + src/paramproc.cpp | 1 + src/protocolhttp.cpp | 1 + src/server.h | 1 + src/serversocket.h | 1 + src/set.h | 4 ++-- src/tafreader.cpp | 2 ++ src/tests/fstring.cpp | 2 +- src/tests/itoqueue1.cpp | 1 + 20 files changed, 87 insertions(+), 7 deletions(-) create mode 100644 src/doxy/params.dox create mode 100644 src/doxy/plugins.dox create mode 100644 src/doxy/taf.dox create mode 100644 src/doxy/unittest.dox diff --git a/src/doxy/main.dox b/src/doxy/main.dox index a13438f..6030f0c 100644 --- a/src/doxy/main.dox +++ b/src/doxy/main.dox @@ -21,6 +21,10 @@ * - @ref howto_archives * - @ref howto_threading * - @ref howto_servers + * - @ref howto_taf + * - @ref howto_plugins + * - @ref howto_unittest + * - @ref howto_params */ /** diff --git a/src/doxy/params.dox b/src/doxy/params.dox new file mode 100644 index 0000000..1657f7b --- /dev/null +++ b/src/doxy/params.dox @@ -0,0 +1,15 @@ +/* + * Copyright (C) 2007-2008 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +/** + *@page howto_params Handling Command Line Parameters + * + * Libbu++ provides everything you need to cope with command line parameters + * like a pro. + * + *@todo Finish this page. + */ diff --git a/src/doxy/plugins.dox b/src/doxy/plugins.dox new file mode 100644 index 0000000..36bcc5a --- /dev/null +++ b/src/doxy/plugins.dox @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2007-2008 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +/** + *@page howto_plugins Creating Plugins and Plugin Frameworks + * + * Libbu++ offers a simple yet safe mechanism for dealing with plugins, it + * allows a program to have "builtin" plugins or DLL/SO based dynamically loaded + * plugnis. Plugins are then referred to by name, are checked for type-safety, + * and are managed to avoid memory leaks. + * + *@todo Finish this page. + */ diff --git a/src/doxy/taf.dox b/src/doxy/taf.dox new file mode 100644 index 0000000..c5befb6 --- /dev/null +++ b/src/doxy/taf.dox @@ -0,0 +1,16 @@ +/* + * Copyright (C) 2007-2008 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +/** + *@page howto_taf Using the Textual Archive Format + * + * Libbu++ provides support for TAF, the Textual Archive Format, a very simple + * grouped key/value pair format with the ability to support trees of data. + * It's like XML-Light. + * + *@todo Finish this page. + */ diff --git a/src/doxy/unittest.dox b/src/doxy/unittest.dox new file mode 100644 index 0000000..41b13f8 --- /dev/null +++ b/src/doxy/unittest.dox @@ -0,0 +1,15 @@ +/* + * Copyright (C) 2007-2008 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +/** + *@page howto_unittest Writing Unit Tests For Your Programs + * + * Libbu++ uses it's own simple and flexible unit testing framework, and you can + * too! + * + *@todo Finish this page. + */ diff --git a/src/exceptionbase.cpp b/src/exceptionbase.cpp index 6d019af..cea779d 100644 --- a/src/exceptionbase.cpp +++ b/src/exceptionbase.cpp @@ -7,6 +7,7 @@ #include "exceptionbase.h" #include +#include Bu::ExceptionBase::ExceptionBase( const char *lpFormat, ... ) throw() : nErrorCode( 0 ), diff --git a/src/file.h b/src/file.h index 1468f93..b7ce17d 100644 --- a/src/file.h +++ b/src/file.h @@ -9,6 +9,8 @@ #define BU_FILE_H #include +#include +#include #include "bu/stream.h" #include "bu/fstring.h" diff --git a/src/formula.h b/src/formula.h index ed543bd..c57c4bb 100644 --- a/src/formula.h +++ b/src/formula.h @@ -9,6 +9,7 @@ #define FORMULA_H #include +#include #include //#include "sbuffer.h" diff --git a/src/hash.h b/src/hash.h index 6065fe1..30ad256 100644 --- a/src/hash.h +++ b/src/hash.h @@ -612,7 +612,7 @@ namespace Bu { return hsh.getValueAtPos( nPos ); } - }; + } iterator; /** * Iteration structure for iterating through the hash (const). @@ -728,7 +728,7 @@ namespace Bu { return hsh.getValueAtPos( nPos ); } - }; + } const_iterator; /** * Get an iterator pointing to the first item in the hash table. diff --git a/src/itoserver.h b/src/itoserver.h index cb7ffbf..0256f87 100644 --- a/src/itoserver.h +++ b/src/itoserver.h @@ -9,6 +9,7 @@ #define BU_ITO_SERVER_H #include +#include #include "bu/fstring.h" #include "bu/list.h" diff --git a/src/list.h b/src/list.h index 30edf71..ed28e15 100644 --- a/src/list.h +++ b/src/list.h @@ -353,7 +353,7 @@ namespace Bu pLink = oth.pLink; return *this; } - }; + } iterator; /** *@see iterator @@ -465,7 +465,7 @@ namespace Bu pLink = oth.pLink; return *this; } - }; + } const_iterator; /** * Get an iterator pointing to the first item in the list. diff --git a/src/logger.cpp b/src/logger.cpp index 3ba3285..9bd2fa5 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -9,6 +9,7 @@ #include #include #include +#include Bu::Logger::Logger() { diff --git a/src/paramproc.cpp b/src/paramproc.cpp index 95f97c6..c8e6afd 100644 --- a/src/paramproc.cpp +++ b/src/paramproc.cpp @@ -7,6 +7,7 @@ #include "paramproc.h" #include +#include #define ptrtype( iitype, iiname ) \ Bu::ParamProc::ParamPtr::ParamPtr( iitype *iiname ) : \ diff --git a/src/protocolhttp.cpp b/src/protocolhttp.cpp index 80f32e1..f512eda 100644 --- a/src/protocolhttp.cpp +++ b/src/protocolhttp.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include "bu/protocolhttp.h" #include "bu/logger.h" diff --git a/src/server.h b/src/server.h index 49fc72a..c4ad4b9 100644 --- a/src/server.h +++ b/src/server.h @@ -9,6 +9,7 @@ #define BU_SERVER_H #include +#include #include "bu/fstring.h" #include "bu/list.h" diff --git a/src/serversocket.h b/src/serversocket.h index ca03026..8267cea 100644 --- a/src/serversocket.h +++ b/src/serversocket.h @@ -10,6 +10,7 @@ #include #include "bu/fstring.h" +#include namespace Bu { diff --git a/src/set.h b/src/set.h index d6f7ae8..7dfa191 100644 --- a/src/set.h +++ b/src/set.h @@ -368,7 +368,7 @@ namespace Bu { return hsh.getKeyAtPos( nPos ); } - }; + } iterator; /** * Iteration structure for iterating through the hash (const). @@ -466,7 +466,7 @@ namespace Bu { return hsh.getKeyAtPos( nPos ); } - }; + } const_iterator; /** * Get an iterator pointing to the first item in the hash table. diff --git a/src/tafreader.cpp b/src/tafreader.cpp index db2e9f5..282f037 100644 --- a/src/tafreader.cpp +++ b/src/tafreader.cpp @@ -9,6 +9,8 @@ #include "bu/exceptions.h" #include "bu/fstring.h" +#include + using namespace Bu; Bu::TafReader::TafReader( Bu::Stream &sIn ) : diff --git a/src/tests/fstring.cpp b/src/tests/fstring.cpp index f4dfc52..43de18f 100644 --- a/src/tests/fstring.cpp +++ b/src/tests/fstring.cpp @@ -116,7 +116,7 @@ void doTimings() } #define pem printf("---------\n%08X: %s\n%08X: %s\n", (unsigned int)str.getStr(), str.getStr(), (unsigned int)str2.getStr(), str2.getStr() ); -int main( int argc, char *argv ) +int main( int argc, char *argv[] ) { Bu::FString fs1; for( int j = 0; j < 500000; j++ ) fs1 += (char)('a'+(j%26)); diff --git a/src/tests/itoqueue1.cpp b/src/tests/itoqueue1.cpp index 58c1602..41a0276 100644 --- a/src/tests/itoqueue1.cpp +++ b/src/tests/itoqueue1.cpp @@ -8,6 +8,7 @@ #include #include "bu/ito.h" #include "bu/itoqueue.h" +#include class Reader : public Bu::Ito { -- cgit v1.2.3