19 XERCES_CPP_NAMESPACE_USE
91 DOMElement* root =
document->getDocumentElement();
101 strftime(timebuf, 50,
"%Y-%m-%d %H:%M:%S.0", gmtime(&(config->
create_timestamp)));
102 setTagValue(
"CREATE_TIMESTAMP", timebuf, 0, dataSet);
110 DOMNode* cloneDataSet =
document->importNode(dataSet->getDocumentElement(),
true);
111 root->appendChild(cloneDataSet);
117 DOMElement* root =
document->getDocumentElement();
127 strftime(timebuf, 50,
"%Y-%m-%d %H:%M:%S.0", gmtime(&(config->
create_timestamp)));
128 setTagValue(
"CREATE_TIMESTAMP", timebuf, 0, dataSet);
136 DOMNode* cloneDataSet =
document->importNode(dataSet->getDocumentElement(),
true);
137 root->appendChild(cloneDataSet);
146 for (std::vector<std::string>::const_iterator _file = file_name.begin(); _file != file_name.end(); _file++) {
149 conf.
crate = crate_number[_file - file_name.begin()];
152 sprintf(_buf,
"CRATE%.2d", conf.
crate);
154 _namelabel.append(_buf);
161 write(
"LUTLoader.xml");
std::string detector_name
XERCES_CPP_NAMESPACE::DOMDocument * document
std::string trig_prim_lookuptbl_data_file
int addLUT(lutDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.dataset.template")
int write(std::string target="stdout")
std::string comment_description
XERCES_CPP_NAMESPACE::DOMNode * setTagValue(const std::string &tagName, const std::string &tagValue, int _item=0, XERCES_CPP_NAMESPACE::DOMDocument *_document=nullptr)
std::string comment_description
std::string extention_table_name
XERCES_CPP_NAMESPACE::DOMDocument * getDocument(void)
int createLoader(const std::vector< int > &crate_number, const std::vector< std::string > &file_name)
tuple config
parse the configuration file
int addChecksums(checksumsDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.checksums.template")
std::string trig_prim_lookuptbl_data_file
XERCES_CPP_NAMESPACE::DOMNode * setTagAttribute(const std::string &tagName, const std::string &attrName, const std::string &attrValue, int _item=0)
std::string created_by_user