| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

# TESSerializer.h

Go to the documentation of this file.

    00001 // $Id: TESSerializer.h,v 1.1 2008/10/17 08:56:05 mato Exp $
    00002 #ifndef GAUDIMP_TESSERIALIZER_H
    00003 #define GAUDIMP_TESSERIALIZER_H
    00004
    00005 #include "GaudiKernel/IDataStoreAgent.h"
    00006 #include "GaudiKernel/IAddressCreator.h"
    00007
    00008 // ROOT includes
    00009 #include "TClass.h"
    00010
    00011 // vector and string
    00012 #include <string>
    00013 #include <vector>
    00014 #include <map>
    00015
    00016 // forward declarations
    00017 class IDataProviderSvc;
    00018 class IDataManagerSvc;
    00019 class TBufferFile;
    00020 class DataStoreItem;
    00021 class DataObject;
    00022 class IAddressCreator;
    00023
    00031 namespace GaudiMP {
    00032   class GAUDI_API TESSerializer :  virtual public IDataStoreAgent {
    00033     typedef std::vector<DataStoreItem*> Items;
    00034     typedef std::vector<std::string>    ItemNames;
    00035     typedef std::vector<DataObject*>    Objects;
    00036   public:
    00038     TESSerializer(IDataProviderSvc* svc, IAddressCreator* ac);
    00039
    00041     void dumpBuffer(TBufferFile&);
    00042
    00044     void loadBuffer(TBufferFile&);
    00045
    00047     void addItem(const std::string& path);
    00048
    00050     void addOptItem(const std::string& path);
    00051
    00053     bool analyse(IRegistry* dir, int level);
    00054
    00056     void checkItems( );
    00057
    00058   protected:
    00060     void addItem(Items& itms, const std::string& descriptor);
    00061
    00063     DataStoreItem* findItem(const std::string& path);
    00064
    00065   private:
    00067     IDataProviderSvc* m_TES;
    00069     IDataManagerSvc*  m_TESMgr;
    00071     ItemNames         m_itemNames;
    00073     Items             m_itemList;
    00075     ItemNames         m_optItemNames;
    00077     Items             m_optItemList;
    00079     DataStoreItem*    m_currentItem;
    00081     Objects           m_objects;
    00082
    00084     std::map<std::string, TClass*> m_classMap;
    00086     bool                 m_verifyItems;
    00088     bool                 m_strict;
    00090     IAddressCreator*     m_addressCreator;
    00091   };
    00092 }
    00093 #endif
    00094
    00095

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines