//-------------------------------------------------------------------------- // File and Version Information: // $Id: BdbConfigTestXTCTCProxy.hh,v 1.1 1999/11/29 23:31:23 giorgos Exp $ // // Description: // Implementation of the BdbConfigTCProxy class for the // TestXTC, the test tagged container. // // Environment: // Software developed for the BaBar Detector at the SLAC B-Factory. // // Author List: // George Zioulas // // Copyright Information: // Copyright (C) 1999 SLAC // //-------------------------------------------------------------------------- #ifndef BDBCONFIGTESTXTCTCPROXY_HH #define BDBCONFIGTESTXTCTCPROXY_HH //----------------------- // Base Class Headers -- //----------------------- #include "BdbConfigProxy/BdbConfigTCProxy.hh" //------------- // C Headers -- //------------- //--------------- // C++ Headers -- //--------------- //------------------------------- // Collaborating Class Headers -- //------------------------------- //------------------------------------ // Collaborating Class Declarations -- //------------------------------------ class odfArena; class RdfConfigKey; template class BdbConfigCache; class BdbConfigTestXTC; class odfTestXTC; //--------------------- // Class Declaration -- //--------------------- class BdbConfigTestXTCTCProxy : public BdbConfigTCProxy< odfTestXTC, BdbConfigTestXTC > { public: // // Constructor takes a pointer to BdbConfigCache; ownership is taken // The size for the arena can be supplied too // BdbConfigTestXTCTCProxy(BdbConfigCache* theCache, size_t arenaSize = 10240); // Destructor virtual ~BdbConfigTestXTCTCProxy(); protected: // helpers /** * This method allocates XTC inside the Arena. XTC must be the first and * only datum inside the arena, i.e.: * - XTC pointer must match arena's base() * - XTC's extent must match arena's used() */ virtual odfTestXTC* fillXTC(const BdbHandle(BdbConfigTestXTC)& pObject, const RdfConfigKey& rdfKey, odfArena& theArena); private: }; #endif