Sample code which uses open source POCO C++ Libraries (POCO stands for POrtable COmponents). Some of them are available at http://poco.roundsquare.net. (Currently in Japanese)
root/trunk/0040_DynamicFactory
Unused include removed.
| Name | Date | Rev. | Commit message |
|---|---|---|---|
| bootstrap | Sun, Jul 04 2010 | 151 | [Setsu] DynamicFactory added to repository. |
| configure.in | Sun, Jul 04 2010 | 151 | [Setsu] DynamicFactory added to repository. |
| DynamicFactoryTest.cpp | Wed, Jul 07 2010 | 159 | [Setsu] Unused include removed. |
| DynamicFactoryTest.sln | Sun, Jul 04 2010 | 152 | [Setsu] VC++ Project/Solution appended. Class name changed. |
| DynamicFactoryTest.vcproj | Sun, Jul 04 2010 | 152 | [Setsu] VC++ Project/Solution appended. Class name changed. |
| Makefile.am | Sun, Jul 04 2010 | 151 | [Setsu] DynamicFactory added to repository. |
| ReadMe.txt | Sun, Jul 04 2010 | 151 | [Setsu] DynamicFactory added to repository. |
| ScopedLogMessage.cpp | Sun, Jul 04 2010 | 151 | [Setsu] DynamicFactory added to repository. |
| ScopedLogMessage.h | Sun, Jul 04 2010 | 151 | [Setsu] DynamicFactory added to repository. |
ReadMe.txt
// // DynamicFactory ReadMe.txt // // Created by Setsu on 7/4/2010. // Copyright 2010 RoundSquare Inc. All rights reserved. // //---------------------------------------- // What is DynamicFactory? //---------------------------------------- Sample code which uses Poco::DynamicFactory. http://pocoproject.org/docs/Poco.DynamicFactory.html //---------------------------------------- // Building on Linux //---------------------------------------- 1. bootstrap chmod +x bootstrap ./bootstrap 2. configure for debug build: CXXFLAGS="-g -D_DEBUG -Wall" ./configure --cache=/dev/null --prefix=/usr for release build: CXXFLAGS="-O2 -Wall" ./configure --cache=/dev/null --prefix=/usr 3. make make //---------------------------------------- // Building on Mac OS X //---------------------------------------- 1. bootstrap cat bootstrap | sed s/libtoolize/glibtoolize/ > bootstrap.mac chmod +x bootstrap.mac ./bootstrap.mac 2. configure for debug build: CXXFLAGS="-g -D_DEBUG -Wall" ./configure --cache=/dev/null --prefix=/usr for release build: CXXFLAGS="-O2 -Wall" ./configure --cache=/dev/null --prefix=/usr 3. make make //---------------------------------------- // Building on Windows // NOTE: Assuming environment variable POCO_BASE is properly defined. //---------------------------------------- Open DynamicFactoryTest.sln file from VC++, then build and run it. //---------------------------------------- // Console output for DynamicFactoryTest // NOTE: Number in bracket indicates threadID //---------------------------------------- [0] DynamicFactoryTest start [0] Triangle [0] Rectangle [0] Oval [0] DynamicFactoryTest end