Class Property
#include <Property.h >
Interface to DB table for application-specific properties. All properties are defined by each application and used by that application.
Variables are grouped into sections; if a varaible is not in a section, it is considered a global variable.
const string& appname |
the application-specific variable, e.g. task.getName() |
const string& section |
the section (application defined) for the variable |
const string& variable |
the name of the variable |
const string& defaultValue |
if blank, the default value for the variable Default value: "" |
Given an application, a section, and a variable, return the value (or default value) as string.
Return value: the value requested or if blank, the defaultValue
const string& appname |
the application-specific variable, e.g. task.getName() |
const string& section |
the section (application defined) for the variable |
const string& variable |
the name of the variable |
long defaultValue |
if blank, the default value for the variable Default value: 0 |
Given an application, a section, and a variable, return the value (or default value) as long int.
Return value: the value requested or if blank, the defaultValue
const string& appname |
the application-specific variable, e.g. task.getName() |
const string& section |
the section (application defined) for the variable |
const string& variable |
the name of the variable |
bool defaultValue |
if blank, the default value for the variable Default value: false |
Given an application, a section, and a variable, return the value (or default value) as bool.
Return value: the value requested or if blank, the defaultValue
const string& appname |
the application-specific variable |
const string& section |
the section (application defined) for the variable |
Given a section and app name, return the list of variables and values.
Return value: the key/value pairs of the variables and values in a HashArray
const string& appname |
the application-specific variable, e.g. task.getName() |
const string& variable |
the name of the variable |
const string& defaultValue |
if blank, the default value for the variable Default value: "" |
Given an application and a variable, return the value (or default value) as string from that app's global section (not a named section).
Return value: the value requested or if blank, the defaultValue
const string& appname |
the application-specific variable, e.g. task.getName() |
const string& variable |
the name of the variable |
long defaultValue |
if blank, the default value for the variable Default value: 0 |
Given an application and a variable, return the value (or default value) as long int from that app's global section (not a named section).
Return value: the value requested or if blank, the defaultValue
const string& appname |
the application-specific variable, e.g. task.getName() |
const string& variable |
the name of the variable |
bool defaultValue |
if blank, the default value for the variable Default value: false |
Given an application and a variable, return the value (or default value) as bool from that app's global section (not a named section).
Return value: the value requested or if blank, the defaultValue
const string& appname |
the application-specific variable |
Given an app name, return the list of gobal variables and values.
const string& appname |
the application-specific variable, e.g. task.getName() |
const string& section |
the section (application defined) for the variable |
const string& variable |
the name of the variable |
const string& value |
the value to set |
Set a string value for an application variable in a section.
Return value: true if value to to variable successfully
const string& section |
the section (application defined) for the variable |
const string& variable |
the name of the variable |
const string& value |
the value to set |
Set a string value for an application variable in a section.
The current application's name is the appname for the lookup, , e.g. task.getName().
Return value: true if value to to variable successfully
const string& section |
the section (application defined) for the variable |
const string& variable |
the name of the variable |
long value |
the value to set |
Set a long int value for an application variable in a section.
The current application's name is the appname for the lookup, , e.g. task.getName().
Return value: true if value to to variable successfully
const string& section |
the section (application defined) for the variable |
const string& variable |
the name of the variable |
bool value |
the value to set |
Set a bool value for an application variable in a section.
The current application's name is the appname for the lookup, , e.g. task.getName().
Return value: true if value to to variable successfully
DbRecNum id |
Table record number/id |
string appName |
Application's name |
string section |
Section/Block with variables |
string variable |
Variable name with a value |
string value |
Value of variable |
static Datastore db |
Our connection to DB table data |
Make sure we're connected to our table in the Datastore
Return value: true upon success, false upon failure