8 #ifndef CONFIGURABLE_H_
9 #define CONFIGURABLE_H_
10 #include "rrExporter.h"
12 #include "rrExporter.h"
73 virtual _xmlNode *createConfigNode() = 0;
80 virtual void loadConfig(
const _xmlDoc* doc) = 0;
88 static void loadXmlConfig(
const std::string& xml,
98 static std::string xmlFromConfigNode(_xmlNode* config);
104 static _xmlNode *createCapabilityNode(
const std::string& name,
105 const std::string& method,
const std::string& desc);
111 static _xmlNode *createCapabilitiesNode(
const std::string& name,
112 const std::string& desc);
121 static _xmlNode *addChild(_xmlNode *parent, _xmlNode *cur);
126 static _xmlNode *createParameterNode(
const std::string& name,
127 const std::string& hint,
const std::string& value);
132 static _xmlNode *createParameterNode(
const std::string& name,
133 const std::string& hint,
int value);
138 static _xmlNode *createParameterNode(
const std::string& name,
139 const std::string& hint,
double value);
147 static std::string getParameterStringValue(
const _xmlDoc *doc,
148 const std::string& capabilityName,
149 const std::string& parameterName);
157 static int getParameterIntValue(
const _xmlDoc *doc,
158 const std::string& capabilityName,
159 const std::string& parameterName);
167 static double getParameterDoubleValue(
const _xmlDoc *doc,
168 const std::string& capabilityName,
169 const std::string& parameterName);
Definition: Configurable.h:65