You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(622) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(303) |
Feb
(64) |
Mar
(5) |
Apr
(63) |
May
(82) |
Jun
(53) |
Jul
(50) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: stephan b. <sg...@us...> - 2004-12-30 23:09:56
|
Update of /cvsroot/pclasses/pclasses2/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6125/test Modified Files: FactoryTest.h Log Message: Accommodated SIO changes. Index: FactoryTest.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/test/FactoryTest.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- FactoryTest.h 29 Dec 2004 20:11:21 -0000 1.6 +++ FactoryTest.h 30 Dec 2004 23:09:45 -0000 1.7 @@ -58,7 +58,7 @@ #define PS11N_TYPE_IS_ABSTRACT #define PS11N_TYPE_NAME "TheBase" #define PS11N_SERIALIZE_FUNCTOR TheBase_s11n -#include <pclasses/s11n/reg_serializable_traits.h> +#include <pclasses/SIO/RegisterSerializable.h> struct AType : public TheBase |
From: stephan b. <sg...@us...> - 2004-12-30 23:07:28
|
Update of /cvsroot/pclasses/pclasses2/src/SIO In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5683/src/SIO Added Files: RegisterSerializable.h Log Message: egg --- NEW FILE: RegisterSerializable.h --- //////////////////////////////////////////////////////////////////////// // reg_serializable_traits.h // // Supermacro for registering s11n proxies for the s11n API, using // the s11n_traits<> technique introduced in 0.9.3. // // Vars used by this file: // // PS11N_TYPE: type to be registered // // PS11N_TYPE_NAME: stringified name of PS11N_TYPE // // PS11N_TYPE_INTERFACE: if PS11N_TYPE subclasses a regisitered PS11N_TYPE, // pass it here. If this is set then the rest of the following // variables need not be set, as they are inherited. // // PS11N_SERIALIZE_FUNCTOR: functor type responsible for handling calls // to serialize<PS11N_TYPE>(). Default is // s11n::default_serialize_functor, which simply calls // PS11N_TYPE::operator()( NodeT & ). // // PS11N_DESERIALIZE_FUNCTOR: functor type responsible for handling calls // to serialize(). Defaults to PS11N_SERIALIZE_FUNCTOR. // // PS11N_FACTORY_TYPE: functor which is responsible for instantiating // objects of type PS11N_TYPE. Default behaviour is to use // s11n::cl::factory_create_functor< PS11N_TYPE_INTERFACE >. // // THINGS TO KNOW: // // - If the default factory type is NOT used, the caller is // responsible for registering PS11N_TYPE with the appropriate factory, // using the key PS11N_TYPE_NAME. // //////////////////////////////////////////////////////////////////////// // The s11n header files are expected to have been included by the // time this file is ever included. // // // Sample usage: // // #define PS11N_TYPE std::map<Foo,Bar> // #define PS11N_TYPE_NAME "std::map<Foo,Bar>" // #include [this file] // // // repeat for each type: // #define PS11N_TYPE std::map<Foo *,Bar *> // #define PS11N_TYPE_NAME "std::map<Foo*,Bar*>" // #define PS11N_SERIALIZE_FUNCTOR some_functor_name // #include [this file] // // If PS11N_TYPE is a subtype of another Serializable, // and should be available via that base-type's classloader // (Yes, you normally WANT this) then define this macro: // // PS11N_TYPE_INTERFACE // // to the type name of PS11N_TYPE's BaseType. // // If PS11N_TYPE_INTERFACE is not set then the following macros // are also used: // // #define PS11N_SERIALIZE_FUNCTOR some_serializer_functor // #define PS11N_DESERIALIZE_FUNCTOR some_deserializer_functor // // If PS11N_DESERIALIZE_FUNCTOR is defined, that is used // as the Deserialization proxy, otherwise PS11N_SERIALIZE_FUNCTOR // functor is used for both cases. // // If neither are set then ::P::s11n::default_serialize_functor // is installed, and PS11N_TYPE must conform to that proxy's // expectations. // // After each include all of these macros are unset so that they may // be immediately re-used for another registration. //////////////////////////////////////////////////////////////////////// #ifndef PS11N_TYPE # error "PS11N_TYPE must be set before including this file." #endif #ifndef PS11N_TYPE_NAME # error "PS11N_TYPE_NAME must be set before including this file. Set it to the stringified form of PS11N_TYPE." #endif // PS11N_TYPE_INTERFACE only needs to be set when registering subtypes of an // already-registered base type... #ifdef PS11N_TYPE_INTERFACE # define PS11N_INHERIT 1 #else # define PS11N_TYPE_INTERFACE PS11N_TYPE # define PS11N_INHERIT 0 # ifndef PS11N_SERIALIZE_FUNCTOR # define PS11N_SERIALIZE_FUNCTOR ::P::s11n::default_serialize_functor # endif # ifndef PS11N_DESERIALIZE_FUNCTOR # define PS11N_DESERIALIZE_FUNCTOR PS11N_SERIALIZE_FUNCTOR # endif #endif // PS11N_TYPE_INTERFACE #ifndef PS11N_FACTORY_TYPE // then register a factory of our own... # define PS11N_REG_CLLITE 1 # define PS11N_FACTORY_TYPE ::P::s11n::cl::factory_create_functor< PS11N_TYPE_INTERFACE > #else # define PS11N_REG_CLLITE 0 #endif // PS11N_FACTORY_TYPE #include <pclasses/s11n/traits.h> //////////////////////////////////////////////////////////////////////// // Set up s11n_traits<> specialization... namespace P { namespace s11n { template <> struct s11n_traits < PS11N_TYPE > #if PS11N_INHERIT : public s11n_traits < PS11N_TYPE_INTERFACE > #endif { // #if PS11N_INHERIT // typedef s11n_traits < PS11N_TYPE_INTERFACE > ParentType; // typedef PS11N_TYPE serializable_type; // typedef ParentType::serialize_functor serialize_functor; // typedef ParentType::deserialize_functor deserialize_functor; // typedef ParentType::factory_type factory_type; // #endif #if ! PS11N_INHERIT typedef PS11N_TYPE serializable_type; typedef PS11N_SERIALIZE_FUNCTOR serialize_functor; typedef PS11N_DESERIALIZE_FUNCTOR deserialize_functor; typedef PS11N_FACTORY_TYPE factory_type; #endif // PS11N_INHERIT }; } } // namespace P::s11n // end s11n_traits<> //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// // Register the type's name with ::classname<PS11N_TYPE>(). // This is highly unfortunate, but currently required. #define NAME_TYPE PS11N_TYPE #define TYPE_NAME PS11N_TYPE_NAME #include <pclasses/s11n/name_type.h> //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// #if PS11N_REG_CLLITE // register with default classloader... # define PFACREG_TYPE PS11N_TYPE # define PFACREG_TYPE_NAME PS11N_TYPE_NAME # define PFACREG_TYPE_INTERFACE PS11N_TYPE_INTERFACE # ifdef PS11N_TYPE_IS_ABSTRACT # define PFACREG_TYPE_IS_ABSTRACT 1 # endif # include <pclasses/FactoryReg.h> #endif // PS11N_REG_CLLITE //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// // clean up for the next #include ... #undef PS11N_TYPE #undef PS11N_TYPE_NAME #undef PS11N_TYPE_INTERFACE #undef PS11N_SERIALIZE_FUNCTOR #undef PS11N_DESERIALIZE_FUNCTOR #undef PS11N_FACTORY_TYPE #undef PS11N_INHERIT #undef PS11N_REG_CLLITE #ifdef PS11N_TYPE_IS_ABSTRACT # undef PS11N_TYPE_IS_ABSTRACT #endif |
From: stephan b. <sg...@us...> - 2004-12-30 23:06:59
|
Update of /cvsroot/pclasses/pclasses2/src/s11n In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5478/src/s11n Modified Files: Makefile.toc Log Message: Removed subdir-proxy target call. Index: Makefile.toc =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/s11n/Makefile.toc,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- Makefile.toc 30 Dec 2004 22:54:26 -0000 1.17 +++ Makefile.toc 30 Dec 2004 23:06:43 -0000 1.18 @@ -46,7 +46,7 @@ test_bin_LDADD = $(LIBP_TESTS_LDADD) $(LIBPSYSTEM_CLIENT_LDADD) $(LIBPUTIL_CLIENT_LDADD) include $(TOC_MAKESDIR)/BIN_PROGRAMS.make -all: SYMLINK_HEADERS subdir-io SHARED_LIBS subdir-proxy +all: SYMLINK_HEADERS subdir-io SHARED_LIBS # BIN_PROGRAMS |
From: stephan b. <sg...@us...> - 2004-12-30 22:57:10
|
Update of /cvsroot/pclasses/pclasses2/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3499/test Modified Files: Makefile.toc Added Files: AppTest.cpp Log Message: Added AppTest. --- NEW FILE: AppTest.cpp --- #ifdef NDEBUG # // force assert() to work... # undef NDEBUG #endif #include <string> #include <cassert> #include <pclasses/Unicode/String.h> #include <pclasses/SIO/SIO.h> #include <pclasses/s11n/s11n_debuggering_macros.h> #include <pclasses/SIO/Proxy/AppDetails_s11n.h> int main( int argc, char ** argv ) { CERR << "App tests...\n"; using namespace ::P::App; using namespace ::P::SIO; AppDetails ad("NoApp"); ad.setAboutText( "This is a test app" ); ad.setLicenseText( "LGPL" ); ad.getAuthors().push_back( "st...@s1..." ); save( ad, std::cout ); return 0; } Index: Makefile.toc =================================================================== RCS file: /cvsroot/pclasses/pclasses2/test/Makefile.toc,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- Makefile.toc 30 Dec 2004 18:03:13 -0000 1.17 +++ Makefile.toc 30 Dec 2004 22:56:58 -0000 1.18 @@ -18,14 +18,20 @@ build_bins = 1 ifeq (1,$(build_bins)) BIN_PROGRAMS = \ + AppTest \ FactoryTest \ IOTest \ PtrTest \ s11nTest \ SimpleArgvParserTest \ SimplePropertyStoreTest \ + StringTest \ StringToolTest BIN_PROGRAMS_LDADD = $(LIBP_TESTS_LDADD) + AppTest_bin_OBJECTS = AppTest.o + AppTest_bin_LDADD = $(s11nTest_bin_LDADD) \ + $(LIBPUNICODE_CLIENT_LDADD) \ + $(LIBPAPP_CLIENT_LDADD) FactoryTest_bin_OBJECTS = FactoryTest.o registrations.o FactoryTest_bin_LDADD = $(LIBPSYSTEM_CLIENT_LDADD) $(LIBPSIO_CLIENT_LDADD) $(LIBPUTIL_CLIENT_LDADD) StringToolTest_bin_OBJECTS = StringToolTest.o @@ -38,6 +44,11 @@ SimplePropertyStoreTest_bin_OBJECTS = SimplePropertyStoreTest.o SimpleArgvParserTest_bin_LDADD = $(s11nTest_bin_LDADD) SimpleArgvParserTest_bin_OBJECTS = SimpleArgvParserTest.o + StringTest_bin_OBJECTS = StringTest.o + StringTest_bin_LDADD = \ + $(LIBPUNICODE_CLIENT_LDADD) \ + $(LIBPCORE_CLIENT_LDADD) + IOTest_bin_LDADD = $(LIBPSYSTEM_CLIENT_LDADD) \ $(LIBPUTIL_CLIENT_LDADD) \ $(LIBPIO_CLIENT_LDADD) \ |
From: stephan b. <sg...@us...> - 2004-12-30 22:56:12
|
Update of /cvsroot/pclasses/pclasses2/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3288/test Modified Files: s11nTest.cpp SimplePropertyStoreTest.cpp Log Message: Accommodated SIO changes. Index: s11nTest.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/test/s11nTest.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- s11nTest.cpp 30 Dec 2004 17:28:52 -0000 1.9 +++ s11nTest.cpp 30 Dec 2004 22:56:03 -0000 1.10 @@ -10,8 +10,8 @@ #include <pclasses/s11n/list.h> #include <pclasses/s11n/map.h> -#include <pclasses/s11n/proxy/Time_s11n.h> -// #include <pclasses/s11n/proxy/LexT_s11n.h> +#include <pclasses/SIO/Proxy/Time_s11n.h> +// #include <pclasses/SIO/Proxy/LexT_s11n.h> #include <pclasses/Util/StringTool.h> #include <memory> // auto_ptr Index: SimplePropertyStoreTest.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/test/SimplePropertyStoreTest.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- SimplePropertyStoreTest.cpp 29 Dec 2004 20:11:21 -0000 1.5 +++ SimplePropertyStoreTest.cpp 30 Dec 2004 22:56:03 -0000 1.6 @@ -4,7 +4,7 @@ #include <pclasses/s11n/pods_streamable.h> #include <pclasses/s11n/map.h> #include <pclasses/Util/SimplePropertyStore.h> -#include <pclasses/s11n/proxy/SimplePropertyStore_s11n.h> +#include <pclasses/SIO/Proxy/SimplePropertyStore_s11n.h> #include <memory> // auto_ptr #include <cassert> #include <list> |
From: stephan b. <sg...@us...> - 2004-12-30 22:54:35
|
Update of /cvsroot/pclasses/pclasses2/src/SIO In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3003/src/SIO Modified Files: Makefile.toc Log Message: Moved s11n/proxy to SIO/Proxy. Index: Makefile.toc =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/SIO/Makefile.toc,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.toc 29 Dec 2004 19:54:44 -0000 1.1 +++ Makefile.toc 30 Dec 2004 22:54:26 -0000 1.2 @@ -3,6 +3,8 @@ include toc.make +SUBDIRS = Proxy + SOURCES = \ registrations.cpp \ S11nNode.cpp \ @@ -39,4 +41,4 @@ $(LIBNAME)_so_VERSION = $(PACKAGE_VERSION) include $(TOC_MAKESDIR)/SHARED_LIBS.make -all: SYMLINK_HEADERS SHARED_LIBS +all: SYMLINK_HEADERS subdirs SHARED_LIBS |
From: stephan b. <sg...@us...> - 2004-12-30 22:54:35
|
Update of /cvsroot/pclasses/pclasses2/src/s11n In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3003/src/s11n Modified Files: Makefile.toc Log Message: Moved s11n/proxy to SIO/Proxy. Index: Makefile.toc =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/s11n/Makefile.toc,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- Makefile.toc 30 Dec 2004 19:32:27 -0000 1.16 +++ Makefile.toc 30 Dec 2004 22:54:26 -0000 1.17 @@ -2,8 +2,7 @@ include toc.make -SUBDIRS = io proxy - +SUBDIRS = io SOURCES = $(wildcard *.cpp) |
From: stephan b. <sg...@us...> - 2004-12-30 22:53:59
|
Update of /cvsroot/pclasses/pclasses2/src/s11n/proxy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2900/src/s11n/proxy Removed Files: LexT_s11n.h SimplePropertyStore_s11n.h Time_s11n.h Log Message: moving P-specific proxies to SIO/Proxy. --- LexT_s11n.h DELETED --- --- SimplePropertyStore_s11n.h DELETED --- --- Time_s11n.h DELETED --- |
From: stephan b. <sg...@us...> - 2004-12-30 22:53:04
|
Update of /cvsroot/pclasses/pclasses2/src/SIO/Proxy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2755/src/SIO/Proxy Added Files: AppDetails_s11n.h LexT_s11n.h Makefile.toc SimplePropertyStore_s11n.h String_s11n.h Time_s11n.h Log Message: egg - moving over proxies from s11n/proxy. --- NEW FILE: LexT_s11n.h --- //////////////////////////////////////////////////////////////////////// // Defines an s11n proxy for the LexT type. // Should be included from any code which wants to de/serialize // a LexT using the standard s11n interface. // // Conventions: // - Clients must include SIO support before including this. //////////////////////////////////////////////////////////////////////// #if !defined(PCLASSES_S11N_INCLUDED) # error "s11n.h or SIO.h must be included before plugging in s11n proxies!" #else #if !defined(p_UTIL_LEXT_REGISTERED_WITH_S11N) # define p_UTIL_LEXT_REGISTERED_WITH_S11N 1 # include <pclasses/Util/LexT.h> // better safe than sorry. # define PS11N_TYPE P::Util::LexT # define PS11N_TYPE_NAME "LexT" # define PS11N_SERIALIZE_FUNCTOR ::P::s11n::streamable_type_serialization_proxy # include <pclasses/s11n/reg_serializable_traits.h> #endif // p_UTIL_LEXT_REGISTERED_WITH_S11N #endif // PCLASSES_S11N_INCLUDED //////////////////////////////////////////////////////////////////////// --- NEW FILE: Makefile.toc --- #!/usr/bin/make -f include toc.make HEADERS = $(wildcard *.h) DIST_FILES += \ $(HEADERS) INSTALL_HEADERS = $(HEADERS) INSTALL_HEADERS_DEST = $(INSTALL_HEADERS_DEST_BASE)/SIO/Proxy SYMLINK_HEADERS = $(HEADERS) SYMLINK_HEADERS_DEST = $(top_srcdir)/include/pclasses/SIO/Proxy include $(TOC_MAKESDIR)/SYMLINK_HEADERS.make all: SYMLINK_HEADERS --- NEW FILE: Time_s11n.h --- //////////////////////////////////////////////////////////////////////// // Defines an s11n proxy for the Time, Date and DateTime types. // Should be included from any code which wants to de/serialize // these types using the standard s11n interface. // // Conventions: // - Clients must include SIO support before including this. //////////////////////////////////////////////////////////////////////// #if !defined(PCLASSES_S11N_INCLUDED) # error "s11n.h or SIO.h must be included before plugging in s11n proxies!" #else //////////////////////////////////////////////////////////////////////// // Time proxy //////////////////////////////////////////////////////////////////////// #if !defined(p_TIME_REGISTERED_WITH_S11N) # define p_TIME_REGISTERED_WITH_S11N 1 # include <pclasses/Time.h> namespace P { using ::P::Time; struct Time_s11n { // serialize template <typename NodeType> bool operator()( NodeType & dest, const Time & src ) const { typedef ::P::s11n::node_traits<NodeType> TR; TR::class_name( dest, "P::Time" ); // don't use ::classname<Time>() here: it causes an ODR violation :( # define SSET(K,F) TR::set( dest, std::string(K), src.F() ); SSET("sec", second ); SSET("min", minute ); SSET("hour", hour ); SSET("usec", usec ); # undef SSET return true; } // deserialize template <typename NodeType> bool operator()( const NodeType & src, Time & dest ) const { typedef ::P::s11n::node_traits<NodeType> TR; # define SGET(K,SF,GF) dest.SF( TR::get( src, std::string(K), dest.GF() ) ); SGET("sec", setSecond, second ); SGET("min", setMinute, minute ); SGET("hour", setHour, hour ); SGET("usec", setUsec, usec ); # undef SGET return true; } }; // Time_s11n }// namespace P # define PS11N_TYPE ::P::Time # define PS11N_TYPE_NAME "P::Time" # define PS11N_SERIALIZE_FUNCTOR P::Time_s11n # include <pclasses/s11n/reg_serializable_traits.h> #endif // p_TIME_REGISTERED_WITH_S11N //////////////////////////////////////////////////////////////////////// // Date proxy //////////////////////////////////////////////////////////////////////// #if !defined(p_DATE_REGISTERED_WITH_S11N) # define p_DATE_REGISTERED_WITH_S11N 1 # include <pclasses/Date.h> namespace P { using ::P::Date; struct Date_s11n { // serialize template <typename NodeType> bool operator()( NodeType & dest, const Date & src ) const { typedef ::P::s11n::node_traits<NodeType> TR; TR::class_name( dest, "P::Date" ); # define SSET(K,F) TR::set( dest, std::string(K), src.F() ); SSET("year", year ); SSET("month", month ); SSET("day", day ); # undef SSET return true; } // deserialize template <typename NodeType> bool operator()( const NodeType & src, Date & dest ) const { typedef ::P::s11n::node_traits<NodeType> TR; # define SGET(K,SF,GF) dest.SF( TR::get( src, std::string(K), dest.GF() ) ); SGET("year", setYear, year ); SGET("month", setMonth, month ); SGET("day", setDay, day ); # undef SGET return true; } }; // Date_s11n }// namespace P # define PS11N_TYPE ::P::Date # define PS11N_TYPE_NAME "P::Date" # define PS11N_SERIALIZE_FUNCTOR P::Date_s11n # include <pclasses/s11n/reg_serializable_traits.h> #endif // p_DATE_REGISTERED_WITH_S11N //////////////////////////////////////////////////////////////////////// // DateTime proxy //////////////////////////////////////////////////////////////////////// #if !defined(p_DATETIME_REGISTERED_WITH_S11N) # define p_DATETIME_REGISTERED_WITH_S11N 1 # include <pclasses/DateTime.h> namespace P { using ::P::DateTime; struct DateTime_s11n { // serialize template <typename NodeType> bool operator()( NodeType & dest, const DateTime & src ) const { typedef ::P::s11n::node_traits<NodeType> TR; TR::class_name( dest, "P::DateTime" ); using namespace ::P::s11n; bool worked = serialize_subnode<NodeType,Time>( dest, "time", src ); worked = worked && serialize_subnode<NodeType,Date>( dest, "date", src ); return worked; } // deserialize template <typename NodeType> bool operator()( const NodeType & src, DateTime & dest ) const { typedef ::P::s11n::node_traits<NodeType> TR; using namespace ::P::s11n; bool worked = deserialize_subnode<NodeType,Time>( src, "time", dest ); if( worked ) { worked = deserialize_subnode<NodeType,Date>( src, "date", dest ); } return worked; } }; // DateTime_s11n }// namespace P # define PS11N_TYPE ::P::DateTime # define PS11N_TYPE_NAME "P::DateTime" # define PS11N_SERIALIZE_FUNCTOR P::DateTime_s11n # include <pclasses/s11n/reg_serializable_traits.h> #endif // p_DATETIME_REGISTERED_WITH_S11N #endif // PCLASSES_S11N_INCLUDED //////////////////////////////////////////////////////////////////////// --- NEW FILE: SimplePropertyStore_s11n.h --- #if !defined(PCLASSES_S11N_INCLUDED) # error "s11n.h or SIO.h must be included before plugging in s11n proxies!" #else #include "LexT_s11n.h" #if !defined(p_UTIL_SIMPLEPRPOPERTYSTORE_REGISTERED_WITH_S11N) # define p_UTIL_SIMPLEPRPOPERTYSTORE_REGISTERED_WITH_S11N 1 # define PS11N_TYPE ::P::Util::SimplePropertyStore # define PS11N_TYPE_NAME "P::Util::SimplePropertyStore" # define PS11N_SERIALIZE_FUNCTOR ::P::s11n::map::streamable_map_serializable_proxy # include <pclasses/s11n/reg_serializable_traits.h> #endif // p_UTIL_SIMPLEPRPOPERTYSTORE_REGISTERED_WITH_S11N #endif // PCLASSES_S11N_INCLUDED //////////////////////////////////////////////////////////////////////// --- NEW FILE: String_s11n.h --- //////////////////////////////////////////////////////////////////////// // Defines an s11n proxy for the String type. // Should be included from any code which wants to de/serialize // a String using the standard s11n interface. // // Conventions: // - Clients must include SIO support before including this. //////////////////////////////////////////////////////////////////////// #if !defined(PCLASSES_S11N_INCLUDED) # error "s11n.h or SIO.h must be included before plugging in s11n proxies!" #else #if !defined(p_UNICODE_STRING_REGISTERED_WITH_S11N) #include <pclasses/Unicode/String.h> namespace P { namespace SIO { namespace Proxy { struct String_s11n { public: // serialize template <typename NodeType> bool operator()( NodeType & dest, const ::P::Unicode::String & src ) const { typedef ::P::s11n::node_traits<NodeType> TR; TR::class_name( dest, "P::Unicode::String" ); TR::set( dest, "str", src.utf8() ); return true; } // deserialize template <typename NodeType> bool operator()( const NodeType & src, ::P::Unicode::String & dest ) const { typedef ::P::s11n::node_traits<NodeType> TR; std::string s = TR::get( src, "str", std::string() ); try { dest = ::P::Unicode::String::fromLatin1( s, s.size() ); } catch( ... ) { return false; } return true; } }; }}} // namespace ::P::SIO::Proxy #define PS11N_TYPE ::P::Unicode::String #define PS11N_TYPE_NAME "P::Unicode::String" #define PS11N_SERIALIZE_FUNCTOR ::P::SIO::Proxy::String_s11n #include <pclasses/s11n/reg_serializable_traits.h> #endif // p_UNICODE_STRING_REGISTERED_WITH_S11N #endif // PCLASSES_S11N_INCLUDED //////////////////////////////////////////////////////////////////////// --- NEW FILE: AppDetails_s11n.h --- //////////////////////////////////////////////////////////////////////// // Defines an s11n proxy for the String type. // Should be included from any code which wants to de/serialize // a String using the standard s11n interface. // // Conventions: // - Clients must include SIO support before including this. //////////////////////////////////////////////////////////////////////// #if !defined(PCLASSES_S11N_INCLUDED) # error "s11n.h or SIO.h must be included before plugging in s11n proxies!" #else #if !defined(p_APP_APPINFO_REGISTERED_WITH_S11N) #include <pclasses/App/AppDetails.h> #include <pclasses/s11n/list.h> // needed to de/serialize DetailList #include <pclasses/SIO/Proxy/String_s11n.h> // needed to de/ser String namespace P { namespace SIO { namespace Proxy { struct AppDetails_s11n { // serialize template <typename NodeType> bool operator()( NodeType & dest, const ::P::App::AppDetails & src ) const { typedef ::P::s11n::node_traits<NodeType> TR; TR::class_name( dest, "P::App::AppDetails" ); TR::set( dest, "name", src.getName().utf8() ); TR::set( dest, "about", src.getAboutText().utf8() ); TR::set( dest, "license", src.getLicenseText().utf8() ); return ::P::s11n::serialize_subnode( dest, "authors", src.getAuthors() ); } // deserialize template <typename NodeType> bool operator()( const NodeType & src, ::P::App::AppDetails & dest ) const { CERR << "Deserialize AppDetails...\n"; typedef ::P::s11n::node_traits<NodeType> TR; dest.setName( TR::get( src, "name", ::P::Unicode::String() ) ); dest.setAboutText( TR::get( src, "about", ::P::Unicode::String() ) ); dest.setLicenseText( TR::get( src, "license", ::P::Unicode::String() ) ); return ::P::s11n::deserialize_subnode( src, "authors", dest.getAuthors() ); } }; // AppDetails_s11n }}} // namespace ::P::SIO::Proxy # define PS11N_TYPE P::App::AppDetails # define PS11N_TYPE_NAME "P::App::AppDetails" # define PS11N_SERIALIZE_FUNCTOR P::SIO::Proxy::AppDetails_s11n # include <pclasses/s11n/reg_serializable_traits.h> #endif // p_APP_APPINFO_REGISTERED_WITH_S11N #endif // PCLASSES_S11N_INCLUDED //////////////////////////////////////////////////////////////////////// |
From: stephan b. <sg...@us...> - 2004-12-30 22:51:25
|
Update of /cvsroot/pclasses/pclasses2/src/SIO/Proxy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2473/src/SIO/Proxy Log Message: Directory /cvsroot/pclasses/pclasses2/src/SIO/Proxy added to the repository |
From: stephan b. <sg...@us...> - 2004-12-30 21:17:43
|
Update of /cvsroot/pclasses/pclasses2/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16049/lib Modified Files: Makefile.toc Log Message: This time i spelled App correctly. :/ Index: Makefile.toc =================================================================== RCS file: /cvsroot/pclasses/pclasses2/lib/Makefile.toc,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Makefile.toc 30 Dec 2004 19:35:47 -0000 1.5 +++ Makefile.toc 30 Dec 2004 21:17:33 -0000 1.6 @@ -10,7 +10,7 @@ ############# P Module libs: pliblist = $(addprefix $(plibp), \ - APP/lib$(LIBPAPP_BASENAME) \ + App/lib$(LIBPAPP_BASENAME) \ IO/lib$(LIBPIO_BASENAME) \ lib$(LIBPCORE_BASENAME) \ Net/lib$(LIBPNET_BASENAME) \ |
From: stephan b. <sg...@us...> - 2004-12-30 20:59:39
|
Update of /cvsroot/pclasses/pclasses2/src/App In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12446/src/App Added Files: AppDetails.cpp Makefile.toc Log Message: egg. Compiles but is untested. --- NEW FILE: AppDetails.cpp --- #include <pclasses/App/AppDetails.h> namespace P { namespace App { struct AppDetails::AppDetailsHolder { ::P::Unicode::String name; ::P::Unicode::String about; ::P::Unicode::String license; ::P::App::AppDetails::DetailList authors; }; using ::P::Unicode::String; AppDetails::AppDetails() throw() : m_detail(0) { } AppDetails::AppDetails( const String & name ) throw() : m_detail(0) { this->details()->name = name; } AppDetails::~AppDetails() throw() { delete this->m_detail; } AppDetails::AppDetailsHolder * AppDetails::details() const { if( ! this->m_detail ) { this->m_detail = new AppDetails::AppDetailsHolder; } return this->m_detail; } AppDetails::DetailList & AppDetails::getAuthors() throw() { return this->details()->authors; } const AppDetails::DetailList & AppDetails::getAuthors() const throw() { return this->details()->authors; } const String & AppDetails::getLicenseText() const throw() { return this->details()->license; } void AppDetails::setLicenseText( const String & l ) throw() { this->details()->license = l; } const String & AppDetails::getName() const throw() { return this->details()->name; } void AppDetails::setName( const String & n ) throw() { this->details()->name = n; } const String & AppDetails::getAboutText() const throw() { return this->details()->about; } void AppDetails::setAboutText( const String & n ) throw() { this->details()->about = n; } }} // namespace P::App --- NEW FILE: Makefile.toc --- #!/usr/bin/make -f include toc.make SOURCES = \ $(wildcard *.cpp) HEADERS = $(wildcard *.h) OBJECTS = $(patsubst %.cpp,%.o,$(SOURCES)) INSTALL_PACKAGE_HEADERS = $(HEADERS) INSTALL_PACKAGE_HEADERS_DEST = $(INSTALL_PACKAGE_HEADERS_BASE)/App DIST_FILES += $(SOURCES) $(HEADERS) #SYMLINK_HEADERS = $(INSTALL_PACKAGE_HEADERS) #SYMLINK_HEADERS_DEST = $(top_srcdir)/include/pclasses/App #include $(TOC_MAKESDIR)/SYMLINK_HEADERS.make LIBNAME = lib$(LIBPAPP_BASENAME) SHARED_LIBS = $(LIBNAME) SHARED_LIBS_LDADD = $(P_BACKLINK_LDADD) $(LIBNAME)_so_LDADD = $(LIBPS11N_LDADD) $(LIBNAME)_so_OBJECTS = $(OBJECTS) $(SUBDIR_OBJECTS) $(LIBNAME)_so_VERSION = $(PACKAGE_VERSION) include $(TOC_MAKESDIR)/SHARED_LIBS.make #BIN_PROGRAMS = test #test_bin_OBJECTS = test.o $(LIBNAME).so #test_bin_LDADD = $(LIBP_TESTS_LDADD) $(LIBPSYSTEM_CLIENT_LDADD) $(LIBPUTIL_CLIENT_LDADD) #include $(TOC_MAKESDIR)/BIN_PROGRAMS.make all: SHARED_LIBS # SYMLINK_HEADERS # BIN_PROGRAMS |
From: stephan b. <sg...@us...> - 2004-12-30 20:59:37
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/App In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12446/include/pclasses/App Added Files: AppDetails.h Log Message: egg. Compiles but is untested. --- NEW FILE: AppDetails.h --- #ifndef App_APPINFO_HPP_INCLUDED #define App_APPINFO_HPP_INCLUDED 1 #include <string> #include <list> #include <pclasses/Unicode/String.h> namespace P { namespace App { using ::P::Unicode::String; /** AppDetails is a container for meta-information about an application, such as its license, author(s), and human-friendly name. Todos: - Add a handle to some App interface type. i.e., getApp() and setApp() (we need the setter so we can properly reconstruct the relationships during deserialization). - Possibly add getLicenses(), returning a list of string. IMO this can be covered by one big string in License. A list would just confuse the usage and make an eventual visual representation more awkward, i think. Maybe not. */ class AppDetails // throw() // i wish that would work { public: typedef std::list<String> DetailList; AppDetails() throw(); // need a default ctor for de-s11n explicit AppDetails( const String & name ) throw(); ~AppDetails() throw(); // note the non-virtualness. DetailList & getAuthors() throw(); const DetailList & getAuthors() const throw(); const String & getLicenseText() const throw(); void setLicenseText( const String & l ) throw(); const String & getName() const throw(); void setName( const String & n ) throw(); const String & getAboutText() const throw(); void setAboutText( const String & n ) throw(); private: struct AppDetailsHolder; // internal type to hold the app data mutable AppDetailsHolder * m_detail; // mutable needed for delayed instantiation AppDetailsHolder * details() const; // performs lazy instantiation of m_detail }; #define APPDETAIL_S11N_EXPERIMENTATION 0 #if 1 == APPDETAIL_S11N_EXPERIMENTATION struct AppDetails_s11n { // serialize template <typename NodeType> bool operator()( NodeType & dest, const AppDetails & src ) const { typedef ::P::s11n::node_traits<NodeType> TR; TR::class_name( dest, "P::App::AppDetails" ); TR::set( dest, "name", src.getName() ); TR::set( dest, "about", src.getAboutText() ); TR::set( dest, "license", src.getLicenseText() ); return ::P::s11n::serialize_subnode<NodeType,AppDetails>( dest, "authors", src.getAuthors() ); } // deserialize template <typename NodeType> bool operator()( const NodeType & src, AppDetails & dest ) const { typedef ::P::s11n::node_traits<NodeType> TR; dest.setName( TR::get( src, "name", dest.getName() ) ); dest.setAboutText( TR::get( src, "about", dest.getAboutText() ) ); dest.setLicenseText( TR::get( src, "license", dest.getLicenseText() ) ); return ::P::s11n::deserialize_subnode<NodeType,AppDetails>( src, "authors", src.getAuthors() ); } }; // AppDetails_s11n #endif // APPDETAIL_S11N_EXPERIMENTATION }} // namespace P::App #endif // App_APPINFO_HPP_INCLUDED |
From: stephan b. <sg...@us...> - 2004-12-30 20:58:55
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/App In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12202/include/pclasses/App Log Message: Directory /cvsroot/pclasses/pclasses2/include/pclasses/App added to the repository |
From: stephan b. <sg...@us...> - 2004-12-30 20:14:20
|
Update of /cvsroot/pclasses/pclasses2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4062 Modified Files: configure.pclasses2 toc.pclasses2.make.at Log Message: Added a timestamp kludge to help force rebuilds of objects after reconfigure. Still not 100% working, and i don't know why. Index: toc.pclasses2.make.at =================================================================== RCS file: /cvsroot/pclasses/pclasses2/toc.pclasses2.make.at,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- toc.pclasses2.make.at 30 Dec 2004 19:35:47 -0000 1.10 +++ toc.pclasses2.make.at 30 Dec 2004 20:14:10 -0000 1.11 @@ -1,9 +1,10 @@ #!/do/not/make #^^^ only to help emacs out. +# @CONFIGURE_TIMESTAMP@ -CLEAN_FILES += $(wildcard *.o *~) +CLEAN_FILES += $(wildcard *.o *~) INCLUDES += -I$(top_srcdir)/include $(PACKAGE_INCLUDES) @@ -36,21 +37,27 @@ ######################################################################## # HUGE KLUDGE to shut up 'no rule to make target -lfoo' errors from make: --l$(LIBPCORE_BASENAME): - @true --l$(LIBPNET_BASENAME): - @true --l$(LIBPIO_BASENAME): - @true --l$(LIBPUNICODE_BASENAME): - @true --l$(LIBPSYSTEM_BASENAME): - @true --l$(LIBPUTIL_BASENAME): - @true --l$(LIBPS11N_BASENAME): - @true --l$(LIBPSIO_BASENAME): - @true --l$(LIBPAPP_BASENAME): - @true +-l$(LIBPCORE_BASENAME): ; @true +-l$(LIBPNET_BASENAME): ; @true +-l$(LIBPIO_BASENAME): ; @true +-l$(LIBPUNICODE_BASENAME): ; @true +-l$(LIBPSYSTEM_BASENAME): ; @true +-l$(LIBPUTIL_BASENAME): ; @true +-l$(LIBPS11N_BASENAME): ; @true +-l$(LIBPSIO_BASENAME): ; @true +-l$(LIBPAPP_BASENAME): ; @true + + + +######################################################################## +##### try to force objects to recompile after configure has been run: +### ... not working :( ... +TOC_SOME_DEFAULT_DEPS = \ + Makefile Makefile.toc \ + $(top_srcdir)/toc.$(PACKAGE_NAME).make \ + $(top_srcdir)/toc.$(PACKAGE_NAME).configure.make \ + $(top_srcdir)/include/pclasses-config.h +%.o: $(TOC_SOME_DEFAULT_DEPS)# isn't working! +%.so: $(TOC_SOME_DEFAULT_DEPS) +$(TOC_SOME_DEFAULT_DEPS): +######################################################################## Index: configure.pclasses2 =================================================================== RCS file: /cvsroot/pclasses/pclasses2/configure.pclasses2,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- configure.pclasses2 30 Dec 2004 19:35:47 -0000 1.22 +++ configure.pclasses2 30 Dec 2004 20:14:10 -0000 1.23 @@ -5,6 +5,10 @@ toc_export PACKAGE_RELEASE_CODENAME="The Rewrite" +toc_export CONFIGURE_TIMESTAMP="$(date)" +# ^^^kludge to force some files to always regen, so that object files +# will be rebuilt after reconfigure. + toc_test check_dist_md5s toc_export PACKAGE_DESCRIPTION="C++ generic application framework library" |
From: stephan b. <sg...@us...> - 2004-12-30 20:14:19
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4062/include/pclasses Modified Files: pclasses-config.h.at Log Message: Added a timestamp kludge to help force rebuilds of objects after reconfigure. Still not 100% working, and i don't know why. Index: pclasses-config.h.at =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/pclasses-config.h.at,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- pclasses-config.h.at 26 Dec 2004 09:21:22 -0000 1.8 +++ pclasses-config.h.at 30 Dec 2004 20:14:10 -0000 1.9 @@ -1,6 +1,8 @@ #ifndef P_CONFIG_HPP_INCLUDED #define P_CONFIG_HPP_INCLUDED 1 +// @CONFIGURE_TIMESTAMP@ +// ^^^ exists to force some files to rebuild after a configure. namespace P { } // namespace P |
From: stephan b. <sg...@us...> - 2004-12-30 19:48:08
|
Update of /cvsroot/pclasses/pclasses2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30852 Modified Files: postconfig.pclasses2 Log Message: Added App module. Index: postconfig.pclasses2 =================================================================== RCS file: /cvsroot/pclasses/pclasses2/postconfig.pclasses2,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- postconfig.pclasses2 30 Dec 2004 15:33:03 -0000 1.1 +++ postconfig.pclasses2 30 Dec 2004 19:47:47 -0000 1.2 @@ -10,7 +10,7 @@ EOF -for i in CORE IO UNICODE SYSTEM UTIL S11N SIO; do +for i in CORE IO UNICODE SYSTEM UTIL S11N SIO APP; do base="LIBP${i}_BASENAME" ldl="LIBP${i}_LDADD" ldc="LIBP${i}_CLIENT_LDADD" |
From: Christian P. <cp...@us...> - 2004-12-30 19:47:03
|
Update of /cvsroot/pclasses/pclasses2/src/IO In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30622/src/IO Modified Files: IOStream.cpp Log Message: Added args for buffer size to IOStream ctor. Index: IOStream.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/IO/IOStream.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- IOStream.cpp 30 Dec 2004 19:21:27 -0000 1.2 +++ IOStream.cpp 30 Dec 2004 19:46:53 -0000 1.3 @@ -158,12 +158,13 @@ if(overflow(traits_type::eof()) == traits_type::eof()) ret = -1; + //@fixme shall we commit IODevice ? return ret; } -IOStream::IOStream(IODevice& dev) -: std::iostream(new IOStreamBuffer(dev)) +IOStream::IOStream(IODevice& dev, size_t outBufferSize, size_t inBufferSize) +: std::iostream(new IOStreamBuffer(dev, outBufferSize, inBufferSize)) { } |
From: Christian P. <cp...@us...> - 2004-12-30 19:47:02
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/IO In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30622/include/pclasses/IO Modified Files: IOStream.h Log Message: Added args for buffer size to IOStream ctor. Index: IOStream.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/IO/IOStream.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- IOStream.h 30 Dec 2004 17:10:34 -0000 1.1 +++ IOStream.h 30 Dec 2004 19:46:52 -0000 1.2 @@ -25,10 +25,11 @@ namespace IO { +//! I/O Stream buffering class class IOStreamBuffer: public std::streambuf { public: - IOStreamBuffer(IODevice& dev, size_t outBufferSize = 64, - size_t inBufferSize = 64); + IOStreamBuffer(IODevice& dev, size_t outBufferSize = 1024, + size_t inBufferSize = 1024); ~IOStreamBuffer(); @@ -44,9 +45,13 @@ size_t _inBufferSize; }; + +//! I/O Stream that works with IODevice's class IOStream: public std::iostream { public: - IOStream(IODevice& dev); + IOStream(IODevice& dev, size_t outBufferSize = 1024, + size_t inBufferSize = 1024); + ~IOStream(); IOStreamBuffer& buffer() const; |
From: stephan b. <sg...@us...> - 2004-12-30 19:37:28
|
Update of /cvsroot/pclasses/pclasses2/src/s11n In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28861 Removed Files: test.cpp Log Message: obsolted. see ../../test/s11nTest.cpp --- test.cpp DELETED --- |
From: Christian P. <cp...@us...> - 2004-12-30 19:37:13
|
Update of /cvsroot/pclasses/pclasses2/src/IO In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28635/src/IO Modified Files: IODevice.cpp Log Message: Renamed IODevice::commit() to sync(). Added File::resize(). Index: IODevice.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/IO/IODevice.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- IODevice.cpp 23 Dec 2004 05:54:27 -0000 1.2 +++ IODevice.cpp 30 Dec 2004 19:36:48 -0000 1.3 @@ -63,7 +63,7 @@ return seek(0, SeekCurrent); } -void IODevice::commit() const throw(IOError) +void IODevice::sync() const throw(IOError) { } |
From: Christian P. <cp...@us...> - 2004-12-30 19:37:13
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28635/include/pclasses/System Modified Files: Pipe.h File.h Log Message: Renamed IODevice::commit() to sync(). Added File::resize(). Index: Pipe.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/Pipe.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Pipe.h 30 Dec 2004 19:01:37 -0000 1.4 +++ Pipe.h 30 Dec 2004 19:36:48 -0000 1.5 @@ -45,7 +45,7 @@ size_t write(const char* buffer, size_t count) throw(IO::IOError); - void commit() const throw(IO::IOError); + void sync() const throw(IO::IOError); Pipe& operator=(const Pipe& f) throw(IO::IOError); Index: File.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/File.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- File.h 30 Dec 2004 17:06:59 -0000 1.5 +++ File.h 30 Dec 2004 19:36:48 -0000 1.6 @@ -95,13 +95,15 @@ @fixme: Same as conventional sync() functions??? */ - void commit() const throw(IO::IOError); + void sync() const throw(IO::IOError); /** Returns the size of this File on disk. */ offset_t size() const throw(IO::IOError); + void resize(size_t sz) throw(IO::IOError); + /** Copies f. |
From: Christian P. <cp...@us...> - 2004-12-30 19:37:13
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/IO In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28635/include/pclasses/IO Modified Files: IODevice.h Log Message: Renamed IODevice::commit() to sync(). Added File::resize(). Index: IODevice.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/IO/IODevice.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- IODevice.h 23 Dec 2004 04:32:15 -0000 1.1 +++ IODevice.h 30 Dec 2004 19:36:47 -0000 1.2 @@ -79,7 +79,7 @@ virtual offset_t getPos() throw(IOError); - virtual void commit() const throw(IOError); + virtual void sync() const throw(IOError); virtual offset_t size() const throw(IOError); |
From: Christian P. <cp...@us...> - 2004-12-30 19:37:01
|
Update of /cvsroot/pclasses/pclasses2/src/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28635/src/System Modified Files: Pipe.posix.cpp File.posix.cpp Log Message: Renamed IODevice::commit() to sync(). Added File::resize(). Index: File.posix.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/System/File.posix.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- File.posix.cpp 30 Dec 2004 17:07:00 -0000 1.7 +++ File.posix.cpp 30 Dec 2004 19:36:48 -0000 1.8 @@ -239,11 +239,11 @@ return false; } -void File::commit() const throw(IO::IOError) +void File::sync() const throw(IO::IOError) { int ret = fsync((int)_handle); if(ret == -1) - throw IO::IOError(errno, "Could not commit file to disk", P_SOURCEINFO); + throw IO::IOError(errno, "Could not sync file to disk", P_SOURCEINFO); } offset_t File::size() const throw(IO::IOError) @@ -256,6 +256,13 @@ return buff.st_size; } +void File::resize(size_t sz) throw(IO::IOError) +{ + int ret = ftruncate((int)_handle, sz); + if(ret == -1) + throw IO::IOError(errno, "Could not truncate file", P_SOURCEINFO); +} + File& File::operator=(const File& f) throw(IO::IOError) { int handle = ::dup((int)f._handle); Index: Pipe.posix.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/System/Pipe.posix.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Pipe.posix.cpp 30 Dec 2004 19:01:38 -0000 1.5 +++ Pipe.posix.cpp 30 Dec 2004 19:36:48 -0000 1.6 @@ -125,7 +125,7 @@ return ret; } -void Pipe::commit() const throw(IO::IOError) +void Pipe::sync() const throw(IO::IOError) { int ret = fsync((int)_handle); if(ret == -1) |
From: stephan b. <sg...@us...> - 2004-12-30 19:35:58
|
Update of /cvsroot/pclasses/pclasses2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28507 Modified Files: configure.pclasses2 toc.pclasses2.make.at Log Message: Added App module. Index: toc.pclasses2.make.at =================================================================== RCS file: /cvsroot/pclasses/pclasses2/toc.pclasses2.make.at,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- toc.pclasses2.make.at 30 Dec 2004 11:06:58 -0000 1.9 +++ toc.pclasses2.make.at 30 Dec 2004 19:35:47 -0000 1.10 @@ -52,3 +52,5 @@ @true -l$(LIBPSIO_BASENAME): @true +-l$(LIBPAPP_BASENAME): + @true Index: configure.pclasses2 =================================================================== RCS file: /cvsroot/pclasses/pclasses2/configure.pclasses2,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- configure.pclasses2 30 Dec 2004 15:38:58 -0000 1.21 +++ configure.pclasses2 30 Dec 2004 19:35:47 -0000 1.22 @@ -37,17 +37,20 @@ ############################################################ -# supplemental libs +# supplemental stuff... if test x0 != "x${configure_with_mysql-1}"; then toc_test mysql_config fi + if test x0 != "x${configure_with_postgres-1}"; then toc_test pg_config fi + if test x0 != "x${configure_with_lyx-1}"; then toc_find lyx "${configure_with_lyx%/*}:$PATH" \ && toc_export LYX_BIN=${TOC_FIND_RESULT} # for (future) lib manual fi + toc_test ${TOC_HOME}/tests/doxygen.sh toc_test libexpat && { @@ -211,6 +214,12 @@ toc_export LIBPSIO_CLIENT_LDADD="-l${LIBPSIO_BASENAME} ${LIBPS11N_CLIENT_LDADD}" toc_export LIBPSIO_CFLAGS="" +toc_export LIBPAPP_BASENAME=pclasses_app +toc_export LIBPAPP_LDADD="${LIBPS11N_CLIENT_LDADD} ${LIBPSYSTEM_CLIENT_LDADD} ${LIBEXPAT_CLIENT_LDADD}" +toc_export LIBPAPP_CLIENT_LDADD="-l${LIBPAPP_BASENAME}" +toc_export LIBPAPP_CFLAGS="" + + ######################################################################## # Enable mysql driver... if test -x "${MYSQL_CONFIG_BIN}"; then |