//----------------------------------------------------------------------------- // File and Version Information: // $Id: BdbConfigTestXTC.ddl,v 1.1 1999/11/29 23:31:23 giorgos Exp $ // // Description: // Class BdbConfigTestXTC.ddl // An example class created based on odfTestXTC class // to store the odfTestXTC data in the Configuration database. // // Environment: // Software developed for the BaBar Detector at the SLAC B-Factory. // // Author List: // George Zioulas // // Copyright Information: // Copyright (C) 1999 SLAC // //----------------------------------------------------------------------------- #ifndef BDBCONFIGTESTXTC_HH #define BDBCONFIGTESTXTC_HH //----------------- // BaBar Headers -- //----------------- #include "BaBar/BaBar.hh" //------------- // C Headers -- //------------- #include //---------------------- // Base Class Headers -- //---------------------- #include "BdbConfig/BdbConfigObject.hh" //----------------------------------------- // Registered Package Class Declarations -- //----------------------------------------- #include "BdbConfig/BdbConfigSchema.hh" //------------------------------- // Collaborating Class Headers -- //------------------------------- #include "BdbUtil/Bdb.hh" //------------------------------------ // Collaborating Class Declarations -- //------------------------------------ class BdbConfigWriter; class BdbConfigTestXTCTransient; class ostream; // --------------------- // -- Class Interface -- // --------------------- class BdbConfigTestXTC : public BdbConfigObject { //------------------ // Static Members -- //------------------ public: // factory method static BdbHandle(BdbConfigTestXTC) create(const BdbConfigTestXTCTransient& transient, BdbConfigWriter* theDatabase, const char* secKey = 0); public: // Destructor virtual ~BdbConfigTestXTC( ); // Selectors // Copy object virtual BdbStatus copy(const BdbHandle(BdbConfigContObj)& containerH, BdbHandle(BdbConfigObject)& newObjectH); // dummy ctor -- for instantiation BdbConfigTestXTC(); // Accessors d_ULong a( ) const; d_ULong b( ) const; d_ULong c( ) const; // create transient copy BdbConfigTestXTCTransient* transient() const; // print method virtual void print(ostream& os, const char* margin="") const; protected: // Constructor BdbConfigTestXTC(const BdbConfigTestXTCTransient& transient ); private: // Data members d_ULong _a; d_ULong _b; d_ULong _c; // not allowed BdbConfigTestXTC(const BdbConfigTestXTC& anotherObject); }; #endif