CMS 3D CMS Logo

main_all.cc

Go to the documentation of this file.
00001 // - Test conversion of flags TXT <-> XML
00002 //
00003 // Author : Samvel Khalatian (samvel at fnal dot gov)
00004 // Created: 07/15/07
00005 // License: GPL
00006 
00007 #include <iostream>
00008 
00009 #include "CalibTracker/SiStripRunSummary/interface/GlobalFlagXML.h"
00010 #include "CalibTracker/SiStripRunSummary/interface/GlobalFlagTxt.h"
00011 #include "CalibTracker/SiStripRunSummary/interface/getFlagTree.h"
00012 
00013 void TXTtoXML() {
00014   std::cout << "--[ \033[1mTXTtoXML\033[0m ]----------------" << std::endl;
00015 
00016   std::cout << "\033[1mTxt\033[0m Flags Tree: " << std::endl;
00017   GlobalFlagTxt oFlagTxt( getTXTFlagTree());
00018   std::cout << "\033[1;32m" << oFlagTxt << "\033[0m" << std::endl;
00019   std::cout << std::endl;
00020 
00021   std::cout << "\033[1mXML\033[0m Flags Tree: " << std::endl;
00022   GlobalFlagXML oFlagXML( &oFlagTxt);
00023   std::cout << "\033[1;32m" << oFlagXML << "\033[0m" << std::endl;
00024 
00025   std::cout << std::endl;
00026 }
00027 
00028 void XMLtoTXT() {
00029   std::cout << "--[ \033[1mXMLtoTXT\033[0m ]----------------" << std::endl;
00030 
00031   std::cout << "\033[1mXML\033[0m Flags Tree: " << std::endl;
00032   GlobalFlagXML oFlagXML( getXMLFlagTree());
00033   std::cout << "\033[1;32m" << oFlagXML << "\033[0m" << std::endl;
00034   std::cout << std::endl;
00035 
00036   std::cout << "\033[1mTxt\033[0m Flags Tree: " << std::endl;
00037   GlobalFlagTxt oFlagTxt( &oFlagXML);
00038   std::cout << "\033[1;32m" << oFlagTxt << "\033[0m" << std::endl;
00039 
00040   std::cout << std::endl;
00041 }
00042 
00043 int main( int nArgc, char *pcArgv[]) {
00044   XMLtoTXT();
00045   TXTtoXML();
00046 
00047   return 0;
00048 }

Generated on Tue Jun 9 17:25:52 2009 for CMSSW by  doxygen 1.5.4