20 #ifndef DATAMODELIMPL_H_5A33C087
21 #define DATAMODELIMPL_H_5A33C087
39 class InterpreterImpl;
50 virtual const std::string& getName() = 0;
51 virtual const std::string& getSessionId() = 0;
52 virtual const std::map<std::string, IOProcessor>& getIOProcessors() = 0;
53 virtual bool isInState(
const std::string& stateId) = 0;
54 virtual XERCESC_NS::DOMDocument* getDocument()
const = 0;
55 virtual const std::map<std::string, Invoker>& getInvokers() = 0;
56 virtual Logger getLogger() = 0;
63 virtual std::string provides() = 0;
64 virtual Data invoke(
const std::string& member,
const Data& params) = 0;
65 virtual Data getValueOf(
const std::string& member) = 0;
66 virtual void setValueOf(
const std::string& member,
const Data& data) = 0;
93 virtual std::list<std::string> getNames() = 0;
109 virtual void setEvent(
const Event& event) = 0;
118 size_t replaceExpressions(std::string& content);
125 virtual uint32_t getLength(
const std::string& expr) = 0;
134 virtual void setForeach(
const std::string& item,
135 const std::string& array,
136 const std::string& index,
137 uint32_t iteration) = 0;
144 virtual Data getAsData(
const std::string& content) = 0;
151 virtual Data evalAsData(
const std::string& content) = 0;
159 virtual bool evalAsBool(
const std::string& expr) = 0;
166 virtual bool isDeclared(
const std::string& expr) = 0;
186 virtual void assign(
const std::string& location,
const Data& data) = 0;
196 virtual void init(
const std::string& location,
const Data& data) = 0;
virtual std::string andExpressions(std::list< std::string >)
Concat the given terms into a conjunctive form.
Definition: DataModelImpl.h:209
Definition: Breakpoint.cpp:26
virtual ~DataModelCallbacks()
silence virtual destructor warning from swig
Definition: DataModelImpl.h:49
Definition: DataModelImpl.h:59
Abstract base class for all data-model implementations.
Definition: DataModelImpl.h:75
Definition: Breakpoint.h:30
Callbacks available for every data-model.
Definition: DataModelImpl.h:47
virtual bool isValidSyntax(const std::string &expr)
Determine whether a given string constitutes valid syntax in the data-model's language.
Definition: DataModelImpl.h:101