13 static std::vector<TrigConfVar> gVarVec;
14 static unsigned int gCounter = 60000;
34 os <<
str(*
this) << std::endl;
41 s <<
"TrigConfVar: " << o.
name() <<
"=" << o.
id();
52 for(
unsigned int i = 0;
i < TrigVar::gVarVec.size();
i++) {
57 return TrigVar::gVarVec[
i].getId();
61 if(TrigVar::gCounter+1 >= 65535) {
71 return TrigVar::gVarVec.back().getId();
80 bool matched_id =
false;
82 for(
unsigned int i = 0;
i < TrigVar::gVarVec.size();
i++) {
88 if(TrigVar::gVarVec[
i].getId() !=
id) {
90 <<
"ReserveVarId - error! Existing var with " <<
name <<
" and id=" << TrigVar::gVarVec[
i].getId() <<
": new id=" <<
id;
93 return TrigVar::gVarVec[
i].getId();
95 else if(TrigVar::gVarVec[
i].getId() ==
id) {
103 <<
"ReserveVarId - error! Existing var with " <<
name <<
" and id=" << TrigVar::gVarVec[
i].getId() <<
": new name=" <<
name;
115 if(TrigVar::gCounter+1 >= 65535) {
126 return TrigVar::gVarVec.back().getId();
135 for(
unsigned int i = 0;
i < TrigVar::gVarVec.size();
i++) {
138 id = TrigVar::gVarVec[
i].getId();
152 for(
unsigned int i = 0; TrigVar::gVarVec.size();
i++) {
154 if(TrigVar::gVarVec[
i].getId() ==
id) {
155 name = TrigVar::gVarVec[
i].getName();
169 return TrigVar::gVarVec;