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::IOV");
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_3.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::IOV\" >\n")+
00025 std::string("<Class table=\"IOV\" id_columns=\"ID\" name=\"cond::IOV\" mapping_version=\"CONDIOV_3.0\" >\n")+
00026 std::string("<Primitive column=\"FIRSTSINCE\" name=\"firstsince\" />\n")+
00027 std::string("<Primitive column=\"TIMETYPE\" name=\"timetype\" />\n")+
00028 std::string("<Container table=\"IOV_DATA\" id_columns=\"ID\" name=\"iov\" position_column=\"POS\" >\n")+
00029 std::string("<Object name=\"value_type\" >\n")+
00030 std::string("<Primitive column=\"IOV_TIME\" name=\"first\" />\n")+
00031 std::string("<Primitive column=\"IOV_TOKEN\" name=\"second\" />\n")+
00032 std::string("</Object >\n")+
00033 std::string("</Container >\n")+
00034 std::string("</Class >\n")+
00035 std::string("</PoolContainer >\n")+
00036 std::string("</PoolDatabase >\n");
00037 return buffer;
00038 }
00039 };
00040 }
00041 #endif