1 #ifndef HCALConfigDBTools_XMLTools_XMLProcessor_h
2 #define HCALConfigDBTools_XMLTools_XMLProcessor_h
26 #include <xercesc/dom/DOM.hpp>
27 #include <xercesc/util/XMLString.hpp>
28 #include <xercesc/util/PlatformUtils.hpp>
29 #include <xercesc/dom/DOMNode.hpp>
30 #include <xercesc/framework/MemBufInputSource.hpp>
33 #if defined(XERCES_NEW_IOSTREAMS)
42 XERCES_CPP_NAMESPACE_USE
187 XMLCh* buff = XMLString::transcode(temp.c_str());
194 int status = snprintf( buf, 100,
"%d", temp );
197 std::cout <<
"XMLProcessor::_toXMLCh(int temp): buffer overflow, the std::string will be truncated!" << std::endl;
199 else if ( status <0 )
201 std::cout <<
"XMLProcessor::_toXMLCh(int temp): output error" << std::endl;
203 XMLCh* buff = XMLString::transcode( buf );
210 int status = snprintf( buf, 100,
"%.10e", temp );
213 std::cout <<
"XMLProcessor::_toXMLCh(int temp): buffer overflow, the std::string will be truncated!" << std::endl;
215 else if ( status <0 )
217 std::cout <<
"XMLProcessor::_toXMLCh(int temp): output error" << std::endl;
219 XMLCh* buff = XMLString::transcode( buf );
226 int status = strftime( buf, 50,
"%c", gmtime( &temp ) );
229 std::cout <<
"XML Processor::_toXMLCh(int temp): buffer overflow, the std::string is indeterminate!" << std::endl;
231 XMLCh* buff = XMLString::transcode( buf );
std::string detector_name
XMLDOMBlock * createLMapHBEFXMLBase(std::string templateFileName)
struct XMLProcessor::_loaderBaseConfig loaderBaseConfig
XMLProcessor::_checksumsDBConfig checksumsDBConfig
std::string comment_description
int addLMapHBEFDataset(XMLDOMBlock *doc, LMapRowHBEF *row, std::string templateFileName)
struct XMLProcessor::_LMapRowHO LMapRowHO
std::string extention_table_name
int addLMapHODataset(XMLDOMBlock *doc, LMapRowHO *row, std::string templateFileName)
struct XMLProcessor::_DBConfig DBConfig
struct XMLProcessor::_LMapRowHBEF LMapRowHBEF
XMLDOMBlock * createLMapHOXMLBase(std::string templateFileName)
static XMLCh * _toXMLCh(std::string temp)
XMLProcessor::_lutDBConfig lutDBConfig
int write(XMLDOMBlock *doc, std::string target="stdout")
static XMLProcessor * instance
XMLCh * serializeDOM(DOMNode *node, std::string target="stdout")
static XMLProcessor * getInstance()
std::string created_by_user