summaryrefslogtreecommitdiff
path: root/project2/variables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/variables.cpp')
-rw-r--r--project2/variables.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/project2/variables.cpp b/project2/variables.cpp
index 2e08b1b..2b2872d 100644
--- a/project2/variables.cpp
+++ b/project2/variables.cpp
@@ -117,6 +117,7 @@ VariableType::operator=(const VariableType & vt)
_VT::operator=(*((const _VT *)&vt));
}
+/// Variable implementation whose value is a literal value of some known type
class VariableLiteral : public VariableImpl {
public:
VariableLiteral(const Glib::ustring & src, const VT_typeID format = DefaultType) :
@@ -129,6 +130,7 @@ class VariableLiteral : public VariableImpl {
VariableType val;
};
+/// Base class for variables whose content is dynamic
class VariableImplDyn : public VariableImpl {
public:
VariableImplDyn(const xmlpp::Element * e) :
@@ -151,6 +153,7 @@ class VariableImplDyn : public VariableImpl {
boost::optional<Variable> defaultValue;
};
+/// Variable implementation to access session contents
class VariableSession : public VariableImplDyn {
public:
VariableSession(const xmlpp::Element * e) :
@@ -175,6 +178,7 @@ class VariableSession : public VariableImplDyn {
const Glib::ustring name;
};
+/// Variable implementation to access call parameters
class VariableParam : public VariableImplDyn {
public:
VariableParam(const xmlpp::Element * e) :
@@ -202,6 +206,7 @@ class VariableParam : public VariableImplDyn {
const Glib::ustring name;
};
+/// Variable implementation to access URI path fragments
class VariableUri : public VariableImplDyn {
public:
VariableUri(const xmlpp::Element * e) :
@@ -233,6 +238,7 @@ static void assignHelper(VariableType & dest, const VariableType & src) {
dest = src;
}
+/// Variable implementation to access fields in row sets
class VariableParent : public VariableImplDyn, public RowUser {
public:
VariableParent(const xmlpp::Element * e, const RowUser * d) :
@@ -321,6 +327,7 @@ class VariableParent : public VariableImplDyn, public RowUser {
mutable boost::function2<void, VariableType &, ConstRowSetPtr> getValue;
};
+/// Variable implementation which has some fixed value
class VariableFixed : public VariableImpl {
public:
VariableFixed(VariableType v) :
@@ -335,6 +342,7 @@ class VariableFixed : public VariableImpl {
VariableType var;
};
+/// Variable implementation to access platform configuration values
class VariableConfig : public VariableImplDyn {
public:
VariableConfig(const xmlpp::Element * e) :