CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/CondCore/IOVService/interface/IOVNames.h

Go to the documentation of this file.
00001 #ifndef CondCore_IOVService_IOVNames_h
00002 #define CondCore_IOVService_IOVNames_h
00003 #include <string>
00004 namespace cond{
00005   class IOVNames{
00006   public:
00007     static std::string container() {
00008       return std::string("cond::IOVSequence"); 
00009     }
00010     static std::string iovTableName() {
00011       return std::string("IOV"); 
00012     }
00013     static std::string iovDataTableName() {
00014       return std::string("IOV_DATA"); 
00015     }
00016     static std::string iovMappingVersion() {
00017       return std::string("CONDIOV_4.0");
00018     }
00019     static std::string const & iovMappingXML(){
00020       static const std::string buffer = 
00021         std::string("<?xml version='1.0' encoding=\"UTF-8\"?>\n")+
00022         std::string("<!DOCTYPE PoolDatabase SYSTEM \"InMemory\">\n")+
00023         std::string("<PoolDatabase >\n")+
00024         std::string("<PoolContainer name=\"cond::IOVSequence\" >\n")+
00025         std::string("<Class table=\"IOV\" id_columns=\"ID\" name=\"cond::IOVSequence\" mapping_version=\"CONDIOV_4.0\" >\n")+
00026         std::string("<Primitive column=\"LASTTILL\" name=\"m_lastTill\" />\n")+
00027         std::string("<Primitive column=\"TIMETYPE\" name=\"m_timetype\" />\n")+
00028         std::string("<Primitive column=\"NOTORDERED\" name=\"m_notOrdered\" />\n")+
00029         std::string("<Primitive column=\"METADATA\" name=\"m_metadata\" />\n")+
00030         std::string("<PoolArray table=\"IOV_DATA\" id_columns=\"ID\" name=\"m_iovs\" position_column=\"POS\" >\n")+
00031         std::string("<Object name=\"value_type\" >\n")+
00032         std::string("<Primitive column=\"IOV_TIME\" name=\"m_sinceTime\" />\n")+
00033         std::string("<Primitive column=\"IOV_TOKEN\" name=\"m_wrapper\" />\n")+
00034         std::string("</Object >\n")+
00035         std::string("</PoolArray >\n")+
00036         std::string("</Class >\n")+
00037         std::string("</PoolContainer >\n")+
00038         std::string("</PoolDatabase >\n");
00039       return buffer;
00040     }
00041   };
00042 }//ns pool
00043 #endif