test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IOVNames.h
Go to the documentation of this file.
1 #ifndef CondCore_IOVService_IOVNames_h
2 #define CondCore_IOVService_IOVNames_h
3 #include <string>
4 namespace cond{
5  class IOVNames{
6  public:
7  static std::string container() {
8  return std::string("cond::IOVSequence");
9  }
11  return std::string("IOV");
12  }
14  return std::string("IOV_DATA");
15  }
17  return std::string("CONDIOV_4.0");
18  }
19  static std::string const & iovMappingXML(){
20  static const std::string buffer =
21  std::string("<?xml version='1.0' encoding=\"UTF-8\"?>\n")+
22  std::string("<!DOCTYPE PoolDatabase SYSTEM \"InMemory\">\n")+
23  std::string("<PoolDatabase >\n")+
24  std::string("<PoolContainer name=\"cond::IOVSequence\" >\n")+
25  std::string("<Class table=\"IOV\" id_columns=\"ID\" name=\"cond::IOVSequence\" mapping_version=\"CONDIOV_4.0\" >\n")+
26  std::string("<Primitive column=\"LASTTILL\" name=\"m_lastTill\" />\n")+
27  std::string("<Primitive column=\"TIMETYPE\" name=\"m_timetype\" />\n")+
28  std::string("<Primitive column=\"NOTORDERED\" name=\"m_notOrdered\" />\n")+
29  std::string("<Primitive column=\"METADATA\" name=\"m_metadata\" />\n")+
30  std::string("<PoolArray table=\"IOV_DATA\" id_columns=\"ID\" name=\"m_iovs\" position_column=\"POS\" >\n")+
31  std::string("<Object name=\"value_type\" >\n")+
32  std::string("<Primitive column=\"IOV_TIME\" name=\"m_sinceTime\" />\n")+
33  std::string("<Primitive column=\"IOV_TOKEN\" name=\"m_wrapper\" />\n")+
34  std::string("</Object >\n")+
35  std::string("</PoolArray >\n")+
36  std::string("</Class >\n")+
37  std::string("</PoolContainer >\n")+
38  std::string("</PoolDatabase >\n");
39  return buffer;
40  }
41  };
42 }//ns pool
43 #endif
static std::string const & iovMappingXML()
Definition: IOVNames.h:19
static std::string iovMappingVersion()
Definition: IOVNames.h:16
static std::string iovDataTableName()
Definition: IOVNames.h:13
static std::string iovTableName()
Definition: IOVNames.h:10
static std::string container()
Definition: IOVNames.h:7