Commit graph

115 commits

Author SHA1 Message Date
45ed4b4264 extracted Singleton pattern into a separate Template.
I prefer this approach, so I can ignore threadsafety for the moment and add it later just by switching policy
2007-09-06 22:13:26 +02:00
737da9c868 continued wishful thinking in Test form 2007-09-04 05:09:08 +02:00
1cadae2d75 TDBS (test driven brain storming) :-) 2007-09-03 02:33:47 +02:00
c0dcccebd9 Factory impl now complete (hopfully).
Added Tests/Examples for the more advanced use cases
* using custom allocation (e.g. C-style malloc)
* using placement new
* creating Objects via private ctor
* example for the 'PImpl' pattern
2007-08-31 20:32:26 +02:00
b1ea774ef1 removed all custom allocator / deleter stuff (it's the wrong aproach) 2007-08-31 16:53:23 +02:00
b11ac46b76 added possibility to pass a custom deleter function down to shared_ptr.
Note: actually all of this seems against the spirit of C++ (and OO in general). This is a do-it-yourself aproach
which adds far to much complexity (accidental, not fundamental complexity). So I checked it in for the record,
but will abandon this aproach and rely on overloading of operator new / delete if necessary (and when we really need it)
2007-08-31 16:25:04 +02:00
2b0ea4650b reworked factory to get better separation of concerns. But custom allocation can't be done as I intended 2007-08-31 14:57:49 +02:00
307945b629 wrote test: object smart pointer creation factory 2007-08-29 05:03:21 +02:00
d54b600382 implemented C++ error handling system 2007-08-26 19:14:39 +02:00
fee63d8f06 added C++ plugin to SCons build; added test for common/appconfig.hpp 2007-08-25 02:07:04 +02:00
8c7a2055e8 integrate Doxygen into SCons build. some doc fixes 2007-08-24 16:41:16 +02:00
6d9ce217bd played a bit with doxygen and tried some small tweeks... 2007-08-24 02:58:13 +02:00
5575a7679d wrapper for cmdline parsing, finished testsuite-runner, solved shutdown-memoryleak 2007-08-23 17:52:33 +02:00
cb13b09360 WIP: started augmenting my test-runner class to be configurable via cmdline
Added dependency to boost::program_options. Still trying to get into pace with the testing thing ;-)
2007-08-19 21:57:19 +02:00
06efcf0f77 merge together work done for the Testsuite.
- to make it similar to Cehteh's tests, moved my testcode to tests/components
- made scons build the errortest and plugin-example as well
- scons check will run the suite

please note, my implementation work is quite incomplete (warnings, app shuttdown
not yet implemented); I hadn't success running the plugintest.
2007-08-17 11:06:49 +02:00