[Cppunit-cvs] cppunit2/include/opentest sharedmemorytransport.h,NONE,1.1
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-06-26 21:24:39
|
Update of /cvsroot/cppunit/cppunit2/include/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16023/include/opentest Added Files: sharedmemorytransport.h Log Message: Intermediate comit (does not compile). Shared memory transport WIN32 implementation for TestDriver/TestRunner communication. Shared memory region has been setup. Still need to handle exchange of data using the circular buffers and related events. --- NEW FILE: sharedmemorytransport.h --- #ifndef OPENTEST_SHAREDMEMORYTRANSPORT_H_INCLUDED # define OPENTEST_SHAREDMEMORYTRANSPORT_H_INCLUDED # include <opentest/forwards.h> namespace OpenTest { class ShareMemoryError { public: }; class SharedMemoryTransportImpl; struct SharedMemoryConfig { SharedMemoryConfig() : bufferSize_( 512 * 1024 ) // 512k { } unsigned int bufferSize_; }; class SharedMemoryTransport { public: /// Initiate a shared memory connection SharedMemoryTransport( const SharedMemoryConfig &config = SharedMemoryConfig() ); /// Attempts to connect to an existing shared memory connection SharedMemoryTransport( const String &transportName, const SharedMemoryConfig &config = SharedMemoryConfig() ); virtual ~SharedMemoryTransport(); void send( const RemoteMessagePtr &message ); private: SharedMemoryTransportImpl *impl_; }; } // namespace OpenTest #endif // OPENTEST_SHAREDMEMORYTRANSPORT_H_INCLUDED |