#include <DiffStruct.h>
|
| typedef std::unordered_map< std::string, std::string > | OnlyMap_t |
|
| | DiffStruct (const std::string &tagname, const std::string &name="") |
| | ~DiffStruct () |
| void | check (const std::string &attname, const std::string &lval, const std::string &rval) |
| void | check (const std::string &attname, int lval, int rval) |
| void | check (const std::string &attname, unsigned int lval, unsigned int rval) |
| void | check (const std::string &attname, float lval, float rval) |
| void | check (const std::string &attname, bool lval, bool rval) |
| void | addSub (DiffStruct *sub) |
| void | addRightOnlySub (const std::string &tagname, const std::string &name) |
| void | addLeftOnlySub (const std::string &tagname, const std::string &name) |
| bool | empty () const |
| void | writeXML (std::ofstream &xmlfile, const std::string &prefix="") const |
Definition at line 14 of file DiffStruct.h.
◆ OnlyMap_t
◆ DiffStruct()
| TrigConf::DiffStruct::DiffStruct |
( |
const std::string & | tagname, |
|
|
const std::string & | name = "" ) |
◆ ~DiffStruct()
| TrigConf::DiffStruct::~DiffStruct |
( |
| ) |
|
Definition at line 19 of file DiffStruct.cxx.
19 {
22}
DiffStruct(const std::string &tagname, const std::string &name="")
std::vector< DiffStruct * > subs
◆ addLeftOnlySub()
| void TrigConf::DiffStruct::addLeftOnlySub |
( |
const std::string & | tagname, |
|
|
const std::string & | name ) |
◆ addRightOnlySub()
| void TrigConf::DiffStruct::addRightOnlySub |
( |
const std::string & | tagname, |
|
|
const std::string & | name ) |
◆ addSub()
| void TrigConf::DiffStruct::addSub |
( |
DiffStruct * | sub | ) |
|
◆ check() [1/5]
| void TrigConf::DiffStruct::check |
( |
const std::string & | attname, |
|
|
bool | lval, |
|
|
bool | rval ) |
Definition at line 49 of file DiffStruct.cxx.
49 {
50 if(lval!=rval)
51 attdiffs.push_back(
AttDiff(attname, std::to_string(lval), std::to_string(rval) ));
52}
std::vector< AttDiff > attdiffs
◆ check() [2/5]
| void TrigConf::DiffStruct::check |
( |
const std::string & | attname, |
|
|
const std::string & | lval, |
|
|
const std::string & | rval ) |
◆ check() [3/5]
| void TrigConf::DiffStruct::check |
( |
const std::string & | attname, |
|
|
float | lval, |
|
|
float | rval ) |
Definition at line 43 of file DiffStruct.cxx.
43 {
44 if(lval!=rval)
45 attdiffs.push_back(
AttDiff(attname, std::to_string(lval), std::to_string(rval) ));
46}
◆ check() [4/5]
| void TrigConf::DiffStruct::check |
( |
const std::string & | attname, |
|
|
int | lval, |
|
|
int | rval ) |
Definition at line 31 of file DiffStruct.cxx.
31 {
32 if(lval!=rval)
33 attdiffs.push_back(
AttDiff(attname, std::to_string(lval), std::to_string(rval) ));
34}
◆ check() [5/5]
| void TrigConf::DiffStruct::check |
( |
const std::string & | attname, |
|
|
unsigned int | lval, |
|
|
unsigned int | rval ) |
Definition at line 37 of file DiffStruct.cxx.
37 {
38 if(lval!=rval)
39 attdiffs.push_back(
AttDiff(attname, std::to_string(lval), std::to_string(rval) ));
40}
◆ empty()
| bool TrigConf::DiffStruct::empty |
( |
| ) |
const |
◆ writeXML()
| void TrigConf::DiffStruct::writeXML |
( |
std::ofstream & | xmlfile, |
|
|
const std::string & | prefix = "" ) const |
Definition at line 76 of file DiffStruct.cxx.
76 {
82 xmlfile <<
" " <<
d.attname <<
"_l=\"" <<
d.lval <<
"\" " <<
d.attname <<
"_r=\"" <<
d.rval <<
"\"";
85 } else {
91 for(OnlyMap_t::value_type tag_name :
leftonly)
92 xmlfile <<
prefix <<
" <" << tag_name.first <<
" name=\"" << tag_name.second <<
"\"/>" << endl;
94 }
97 for(OnlyMap_t::value_type tag_name :
rightonly)
98 xmlfile <<
prefix <<
" <" << tag_name.first <<
" name=\"" << tag_name.second <<
"\"/>" << endl;
100 }
102 }
103}
static std::vector< std::string > xmlfile
◆ attdiffs
| std::vector<AttDiff> TrigConf::DiffStruct::attdiffs |
◆ leftonly
◆ name
| std::string TrigConf::DiffStruct::name |
◆ rightonly
◆ subs
| std::vector<DiffStruct*> TrigConf::DiffStruct::subs |
◆ tagname
| std::string TrigConf::DiffStruct::tagname |
The documentation for this class was generated from the following files: