#include <NBJunctionLogicCont.h>
Definition at line 53 of file NBJunctionLogicCont.h.
Public Member Functions | |
| void | add (const std::string &key, const std::string &xmlDescription) |
| saves the given junction logic bitfield | |
| void | clear () |
| destroys all stored logics | |
| NBJunctionLogicCont () | |
| void | writeXML (OutputDevice &into) |
| saves all known logics | |
| ~NBJunctionLogicCont () | |
Private Types | |
| typedef std::map< std::string, std::string > | LogicMap |
| definition o the logic-storage: a map from request to respond | |
Private Member Functions | |
| bool | exists (const std::string &key) |
| tries to load a logic with the given key (and all of his permutations) | |
| NBJunctionLogicCont (const NBJunctionLogicCont &s) | |
| NBJunctionLogicCont & | operator= (const NBJunctionLogicCont &s) |
Private Attributes | |
| LogicMap | myMap |
| the storage for the computed logic | |
typedef std::map<std::string, std::string> NBJunctionLogicCont::LogicMap [private] |
definition o the logic-storage: a map from request to respond
Definition at line 73 of file NBJunctionLogicCont.h.
| NBJunctionLogicCont::NBJunctionLogicCont | ( | ) |
| NBJunctionLogicCont::~NBJunctionLogicCont | ( | ) |
Definition at line 52 of file NBJunctionLogicCont.cpp.
References clear().
00052 { 00053 clear(); 00054 }
| NBJunctionLogicCont::NBJunctionLogicCont | ( | const NBJunctionLogicCont & | s | ) | [private] |
invalid copy constructor
| void NBJunctionLogicCont::add | ( | const std::string & | key, | |
| const std::string & | xmlDescription | |||
| ) |
saves the given junction logic bitfield
Definition at line 64 of file NBJunctionLogicCont.cpp.
References myMap.
Referenced by NBRequest::buildBitfieldLogic().
00065 { 00066 LogicMap::iterator i=myMap.find(key); 00067 if (i!=myMap.end()) { 00068 std::string tmp = (*i).second; 00069 } 00070 myMap.insert(LogicMap::value_type(key, xmlDescription)); 00071 }
| void NBJunctionLogicCont::clear | ( | ) |
destroys all stored logics
Definition at line 84 of file NBJunctionLogicCont.cpp.
References myMap.
Referenced by ~NBJunctionLogicCont().
00084 { 00085 myMap.clear(); 00086 }
| bool NBJunctionLogicCont::exists | ( | const std::string & | key | ) | [private] |
tries to load a logic with the given key (and all of his permutations)
Definition at line 58 of file NBJunctionLogicCont.cpp.
References myMap.
| NBJunctionLogicCont& NBJunctionLogicCont::operator= | ( | const NBJunctionLogicCont & | s | ) | [private] |
invalid assignment operator
| void NBJunctionLogicCont::writeXML | ( | OutputDevice & | into | ) |
saves all known logics
Definition at line 75 of file NBJunctionLogicCont.cpp.
References myMap.
Referenced by NBNetBuilder::save().
00075 { 00076 for (LogicMap::iterator i=myMap.begin(); i!=myMap.end(); i++) { 00077 into << (*i).second << "\n"; 00078 } 00079 into << "\n"; 00080 }
LogicMap NBJunctionLogicCont::myMap [private] |
the storage for the computed logic
Definition at line 76 of file NBJunctionLogicCont.h.
Referenced by add(), clear(), exists(), and writeXML().
1.5.6