59 std::string parentPath(
m_parent->GetPathName() );
60 if( !parentPath.empty() ) {
62 path += std::string(
"/");
81 NodeMap_t::value_type nodeVal( name_,
node );
99std::map<std::string,MiniConfigTreeNode*>
108GetNode(
const std::string & name_ )
const
114 std::string::size_type k = name_.find_first_of(
'/');
115 if( k != std::string::npos ) {
116 std::string dName( name_, 0, k );
117 std::string pName( name_, k+1, std::string::npos );
124 return node->GetNode( pName );
139SetAttribute(
const std::string & attName,
const std::string & attValue,
bool isAttribKeyword )
141 AttMap_t::value_type attMapVal( attName, AttMap_t::mapped_type(attValue, isAttribKeyword) );
148GetAttribute(
const std::string & attName,
bool calledFromDaughter )
const
153 return m_parent->GetAttribute( attName,
true );
155 return std::string(
"");
158 return std::string(
"");
160 return i->second.first;
171 return std::string(
"");
173 return i->second.first;
182 m_parent->GetAttributeNames( attSet,
true );
188 std::set<std::string>::value_type setVal( i->first );
189 attSet.insert( std::move(setVal) );
201 std::set<std::string>::value_type setVal( i->first );
202 attSet.insert( std::move(setVal) );
214 node->Accept(visitor);
226 node->Accept(writer);
ClassImp(xAOD::Experimental::RFileChecker) namespace xAOD
virtual void Visit(const MiniConfigTreeNode *node)=0
A node of a tree structure holding a configuration, where each node may be given attributes,...
MiniConfigTreeNode * m_parent
virtual std::string GetAttributeLocal(const std::string &attName) const
MiniConfigTreeNode(std::string name_, MiniConfigTreeNode *parent_)
virtual const MiniConfigTreeNode * GetNode(const std::string &name_) const
This function takes the full path name of a subnode (in UNIX directory style) and returns the corresp...
virtual bool GetAttribKeywordPropagateDown() const
virtual MiniConfigTreeNode * GetDaughter(std::string name_) const
virtual const char * GetName() const
virtual std::map< std::string, dqi::MiniConfigTreeNode * > GetDaughters() const
virtual void Accept(Visitor &visitor) const
virtual MiniConfigTreeNode * GetNewDaughter(std::string name_)
Returns a daughter of this node, creating one if necessary.
AttMap_t::const_iterator AttIter_t
virtual std::string GetAttribute(const std::string &attName, bool calledFromDaughter=false) const
virtual void GetAttributeNames(std::set< std::string > &attSet, bool calledFromDaughter=false) const
virtual void SetAttribute(const std::string &attName, const std::string &attValue, bool isAttribKeyword=false)
virtual void SetAttribKeywordPropagateDown(bool propagateDown)
virtual std::string GetPathName() const
virtual void GetAttributeNamesLocal(std::set< std::string > &attSet) const
NodeMap_t::const_iterator NodeIter_t
virtual ~MiniConfigTreeNode()