CMS 3D CMS Logo

SiStripConfigWriter Class Reference

* Base class for Parsers used by DQM More...

#include <DQM/SiStripMonitorClient/interface/SiStripConfigWriter.h>

List of all members.

Public Member Functions

void createColumn (std::string &element, std::string &name)
void createLayout (std::string &name)
void createRow ()
bool init ()
 Write XML file.
 SiStripConfigWriter ()
 Creator.
void write (std::string &fname)
 ~SiStripConfigWriter ()
 Destructor.

Private Attributes

xercesc::DOMImplementation * domImpl
xercesc::DOMWriter * domWriter
xercesc::DOMElement * lastLayout
xercesc::DOMElement * lastRow
xercesc::DOMDocument * theDoc
xercesc::DOMElement * theTopElement


Detailed Description

* Base class for Parsers used by DQM

Date
2006/10/26 19:40:29
Revision
1.2
Author:
Suchandra Dutta

Definition at line 32 of file SiStripConfigWriter.h.


Constructor & Destructor Documentation

SiStripConfigWriter::SiStripConfigWriter (  ) 

Creator.

Definition at line 11 of file SiStripConfigWriter.cc.

00011                                          {
00012 }

SiStripConfigWriter::~SiStripConfigWriter (  ) 

Destructor.

Definition at line 16 of file SiStripConfigWriter.cc.

00016                                           {
00017 
00018 }


Member Function Documentation

void SiStripConfigWriter::createColumn ( std::string &  element,
std::string &  name 
)

void SiStripConfigWriter::createLayout ( std::string &  name  ) 

void SiStripConfigWriter::createRow (  ) 

Definition at line 49 of file SiStripConfigWriter.cc.

References qtxml::_toDOMS(), lastLayout, lastRow, and theDoc.

00049                                     {
00050   lastLayout->appendChild(theDoc->createTextNode(qtxml::_toDOMS("\n")));
00051 
00052   lastRow = theDoc->createElement(qtxml::_toDOMS("row"));
00053   lastLayout->appendChild(lastRow);
00054   lastLayout->appendChild(theDoc->createTextNode(qtxml::_toDOMS("\n")));
00055 }

bool SiStripConfigWriter::init ( void   ) 

Write XML file.

Definition at line 22 of file SiStripConfigWriter.cc.

References qtxml::_toDOMS(), GenMuonPlsPt100GeV_cfg::cout, domImpl, domWriter, lat::endl(), theDoc, and theTopElement.

00022                                {
00023   try {
00024     XMLPlatformUtils::Initialize();
00025   }
00026   catch (const XMLException& toCatch) {
00027     cout << "Problem to initialise XML !!! " << endl;
00028     return false;
00029   }
00030   DOMImplementation* domImpl = DOMImplementationRegistry::getDOMImplementation(qtxml::_toDOMS("Range"));
00031   domWriter = (dynamic_cast<DOMImplementation*>(domImpl))->createDOMWriter();
00032   domWriter->canSetFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);
00033   theDoc = domImpl->createDocument(0,qtxml::_toDOMS("Layouts"), 0);
00034   theTopElement = theDoc->getDocumentElement();
00035   theTopElement->appendChild(theDoc->createTextNode(qtxml::_toDOMS("\n")));
00036   return true;
00037 }

void SiStripConfigWriter::write ( std::string &  fname  ) 


Member Data Documentation

xercesc::DOMImplementation* SiStripConfigWriter::domImpl [private]

Definition at line 56 of file SiStripConfigWriter.h.

Referenced by init().

xercesc::DOMWriter* SiStripConfigWriter::domWriter [private]

Definition at line 57 of file SiStripConfigWriter.h.

Referenced by init().

xercesc::DOMElement* SiStripConfigWriter::lastLayout [private]

Definition at line 53 of file SiStripConfigWriter.h.

Referenced by createRow().

xercesc::DOMElement* SiStripConfigWriter::lastRow [private]

Definition at line 54 of file SiStripConfigWriter.h.

Referenced by createRow().

xercesc::DOMDocument* SiStripConfigWriter::theDoc [private]

Definition at line 55 of file SiStripConfigWriter.h.

Referenced by createRow(), and init().

xercesc::DOMElement* SiStripConfigWriter::theTopElement [private]

Definition at line 52 of file SiStripConfigWriter.h.

Referenced by init().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:15 2009 for CMSSW by  doxygen 1.5.4