g4tools  5.4.0
Public Member Functions | List of all members
tools::xml::default_factory Class Reference
Inheritance diagram for tools::xml::default_factory:
Inheritance graph
[legend]
Collaboration diagram for tools::xml::default_factory:
Collaboration graph
[legend]

Public Member Functions

virtual treecreate (const std::string &a_tag_name, const std::vector< tree::atb > &a_atbs, tree *a_parent)
 
 default_factory ()
 
virtual ~default_factory ()
 
 default_factory (const default_factory &a_from)
 
default_factoryoperator= (const default_factory &)
 
- Public Member Functions inherited from tools::xml::factory
virtual ~factory ()
 

Additional Inherited Members

- Public Types inherited from tools::xml::factory
typedef std::pair< std::string, std::string > atb
 

Detailed Description

Definition at line 989 of file tree.

Constructor & Destructor Documentation

◆ default_factory() [1/2]

tools::xml::default_factory::default_factory ( )
inline

Definition at line 1001 of file tree.

1001  {
1002 #ifdef TOOLS_MEM
1003  mem::increment(s_class().c_str());
1004 #endif
1005  }

◆ ~default_factory()

virtual tools::xml::default_factory::~default_factory ( )
inlinevirtual

Definition at line 1006 of file tree.

1006  {
1007 #ifdef TOOLS_MEM
1008  mem::decrement(s_class().c_str());
1009 #endif
1010  }

◆ default_factory() [2/2]

tools::xml::default_factory::default_factory ( const default_factory a_from)
inline

Definition at line 1012 of file tree.

1013  :factory(a_from){
1014 #ifdef TOOLS_MEM
1015  mem::increment(s_class().c_str());
1016 #endif
1017  }

Member Function Documentation

◆ create()

virtual tree* tools::xml::default_factory::create ( const std::string &  a_tag_name,
const std::vector< tree::atb > &  a_atbs,
tree a_parent 
)
inlinevirtual

Implements tools::xml::factory.

Definition at line 994 of file tree.

994  {
995  // It does not add the new tree in parent.
996  tree* itemML = new tree(a_tag_name,*this,a_parent);
997  itemML->set_attributes(a_atbs);
998  return itemML;
999  }

◆ operator=()

default_factory& tools::xml::default_factory::operator= ( const default_factory )
inline

Definition at line 1018 of file tree.

1018 {return *this;}

The documentation for this class was generated from the following file: