Actin®  Version 5.3.0
Software for Robotics Simulation and Control
ecXmlFactory.h
Go to the documentation of this file.
1 #ifndef ecXmlFactory_H_
2 #define ecXmlFactory_H_
3 //------------------------------------------------------------------------------
4 // Copyright (c) 2006-2013 Energid Technologies. All rights reserved.
5 //
9 //
10 //------------------------------------------------------------------------------
11 #include <foundCore/ecConfig.h> // Required to be first header.
12 #include "ecBaseXmlFactory.h"
13 #include <map>
14 
16 {
17 public:
20  (
21  );
22 
24  virtual ~EcXmlFactory
25  (
26  );
27 
30  (
31  const EcXmlFactory& orig
32  );
33 
35  EcXmlFactory& operator=
36  (
37  const EcXmlFactory& orig
38  );
39 
41  EcBoolean operator==
42  (
43  const EcXmlFactory& orig
44  ) const;
45 
46 #ifndef SWIG
47  virtual void registerComponentCreator
49  (
50  const EcToken& token,
51  EcXmlObjectCreator creator
52  ) EC_OVERRIDE;
53 
55  virtual void registerComponentCreator
56  (
57  const EcToken* token,
58  EcXmlObjectCreator creator
59  );
60 #endif
61 
63  virtual EcBoolean loadLibrary
64  (
65  const EcString& libraryName
66  );
67 
70  (
71  const EcToken& token
72  ) const EC_OVERRIDE;
73 
75  virtual const EcXmlCreatorMap& creatorMap
76  (
77  ) const;
78 
79 protected:
82 };
83 
84 #endif // ecXmlFactory_H_
virtual EcXmlObject * newObjectFromToken(const EcToken &token) const =0
create a new object from its token
#define EC_OVERRIDE
Add wrapper around c++11 override keyword.
Definition: ecMacros.h:36
Specify some global configuration parameters and values.
EcXmlObject *(* EcXmlObjectCreator)()
type definition of an expression element creator function
Definition: ecXmlObject.h:132
An EcString-like class that holds a tag and a namespace.
Definition: ecToken.h:41
virtual void registerComponentCreator(const EcToken &token, EcXmlObjectCreator creator)=0
register a single optional component
A base class for xml objects.
Definition: ecXmlObject.h:23
#define EC_STABLE_XML_DECL
xml directory
Definition: ecConfig.h:208
Holds a factory for creating XML objects.
Definition: ecXmlFactory.h:15
bool EcBoolean
Boolean (0 or 1)
Definition: ecTypes.h:21
std::basic_string< char > EcString
a character string
Definition: ecTypes.h:116
EcXmlCreatorMap m_CreatorMap
A map holding the relationship between string labels and subcomponents.
Definition: ecXmlFactory.h:81
std::map< EcToken, EcXmlObjectCreator > EcXmlCreatorMap
type definition of a creator function map from std::map
Definition: ecXmlObject.h:135
An abstract base class for XML object factories.
Created by Energid Technologies www.energid.com
Copyright © 2016 Energid. All trademarks mentioned in this document are property of their respective owners.