hpp-util  4.9.0
Debugging tools for the HPP project.
ignoretag.hh
Go to the documentation of this file.
1 // Copyright (c) 2014, LAAS-CNRS
2 // Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3 //
4 // This file is part of hpp-manipulation-urdf.
5 // hpp-manipulation-urdf is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 //
10 // hpp-manipulation-urdf is distributed in the hope that it will be
11 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // General Lesser Public License for more details. You should have
14 // received a copy of the GNU Lesser General Public License along with
15 // hpp-manipulation-urdf. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef HPP_UTIL_FACTORIES_IGNORETAG_HH
18 # define HPP_UTIL_FACTORIES_IGNORETAG_HH
19 
20 # include "hpp/util/parser.hh"
21 
22 namespace hpp {
23  namespace util {
24  namespace parser {
27 
32  public:
34  ObjectFactory (parent, element) {}
35 
36  bool init ()
37  {
38  return false;
39  }
40 
41  void impl_write (XMLElement* element) const
42  {
43  element->InsertEndChild (XMLComment ("This tag was ignored"));
44  }
45  };
46 
48  } // namespace parser
49  } // namespace manipulation
50 } // namespace hpp
51 
52 #endif // HPP_UTIL_FACTORIES_IGNORETAG_HH
void impl_write(XMLElement *element) const
Definition: ignoretag.hh:41
Definition: assertion.hh:24
Class that catch XML Parser events for a specific tag and build the corresponding Object...
Definition: parser.hh:77
ObjectFactory * parent()
Definition: parser.cc:230
TiXmlComment XMLComment
Definition: parser.hh:37
TiXmlElement XMLElement
Definition: parser.hh:31
Definition: ignoretag.hh:31
bool init()
Definition: ignoretag.hh:36
IgnoreTagFactory(ObjectFactory *parent, const XMLElement *element)
Definition: ignoretag.hh:33