|
| Figure (std::shared_ptr< Element > parent, std::string uuid, std::string name, std::string description, std::string unit, std::string ontology="", Range< T > range=Range< T >(), TIME time=TIME()) |
| Constructor. More...
|
|
| ~Figure () |
| Destructor. More...
|
|
Figure< T, x, y > & | operator= (const Container< T, x, y > &value) |
| Assignment operator. More...
|
|
Container< T, x, y > & | operator* (void) |
| Access Operator. More...
|
|
bool | check_range (const Container< T, x, y > &value) const |
| Check range. More...
|
|
void | set_range (Range< T > range) |
| Set Range. More...
|
|
void | set_time (TIME time) |
| Set Time. More...
|
|
void | set_value (const Container< T, x, y > &value) |
| Set Value. More...
|
|
HTTP::Json | wjson (void) override |
| HTTP JSON. More...
|
|
Container< T, x, y > | cast (T value) |
| Cast to container. More...
|
|
virtual void | update (const Container< T, x, y > &value, TIME time) |
| Update. More...
|
|
| Element (std::shared_ptr< Element > parent, std::string uuid, std::string name, std::string description, std::string ontology="") |
| Constructor. More...
|
|
virtual | ~Element () |
| Destructor. More...
|
|
std::vector< std::string > | fqid (void) |
| FQID. More...
|
|
std::shared_ptr< Element > | operator[] (std::string fqid) |
| Access Operator. More...
|
|
std::shared_ptr< Element > | add (std::string uuid, std::shared_ptr< Element > child) |
| Add Child Element. More...
|
|
std::shared_ptr< Element > | add (std::string uuid, Element *child) |
| Add Child Element. More...
|
|
bool | insert (std::string uuid, std::shared_ptr< Element > child) |
| Add Child Element. More...
|
|
bool | insert (std::string uuid, Element *child) |
| Add Child Element. More...
|
|
bool | remove (std::string uuid) |
| Remove Child element. More...
|
|
template<typename T > |
T * | cast (void) |
| Get dynamically casted pointer. More...
|
|
bool | is_object (void) const |
| Is Object? More...
|
|
bool | is_variable (void) const |
| Is Variable? More...
|
|
bool | is_function (void) const |
| Is Function? More...
|
|
bool | is_parameter (void) const |
| Is Parameter? More...
|
|
virtual HTTP::Json | wjson (void) |
| HTTP JSON. More...
|
|
virtual std::string | json (void) |
| JSON string. More...
|
|
HTTP::Response | handle (HTTP::Request request, std::smatch match=std::smatch()) |
| HTTP Handler. More...
|
|
| Resource () |
| Constructor. More...
|
|
| ~Resource () |
| Default Destructor. More...
|
|
virtual Response | handle (Request message, std::smatch match=std::smatch()) |
| HTTP Handler. More...
|
|
virtual Response | handle_get (Request message, std::smatch match=std::smatch()) |
| HTTP GET Handler. More...
|
|
virtual Response | handle_put (Request message, std::smatch match=std::smatch()) |
| HTTP PUT Handler. More...
|
|
virtual Response | handle_post (Request message, std::smatch match=std::smatch()) |
| HTTP POST Handler. More...
|
|
virtual Response | handle_delete (Request message, std::smatch match=std::smatch()) |
| HTTP DELETE Handler. More...
|
|
virtual Response | handle_patch (Request message, std::smatch match=std::smatch()) |
| HTTP PATCH Handler. More...
|
|
virtual Response | handle_options (Request message, std::smatch match=std::smatch()) |
| HTTP OPTIONS Handler. More...
|
|
virtual Response | handle_head (Request message, std::smatch match=std::smatch()) |
| HTTP HEAD Handler. More...
|
|
virtual Response | handle_exception (Request message, std::exception &exception, std::smatch match=std::smatch()) |
| HTTP Exception handler. More...
|
|
template<typename T, int x = -1, int y = -1>
class SOIL::Figure< T, x, y >
Intermediate class for Variable and Parameter that derives from Element as both share many properties. This class should not be instantianted directly and is abstract. The underlying data management completely relies on the templated Container class, henace many templates are passed on.
- Template Parameters
-
T | Type of the data. |
x | First dimension of the data. -1 means unused, 0 means arbitray size. Cannot be -1 if y is not -1. |
y | Second dimension of the data. -1 means unused, 0 means arbitray size. Must be -1 for x to be -1. |
Definition at line 48 of file Figure.h.
template<typename T , int x, int y>
Read callback that can be implemented by deriving classes to perform custom build logic on read actions, e.g. update the value from an external storage. Declared virtual to make sure the derived method is called first.
Implemented in SOIL::Parameter< T, x, y >, and SOIL::Variable< T, x, y >.
Definition at line 254 of file Figure.h.
template<typename T , int x = -1, int y = -1>
Write callback that can be implemented by deriving classes to perform custom build logic on write actions, e.g.set a value to an external system. Declared virtual to make sure the derived method is called first.
Implemented in SOIL::Parameter< T, x, y >, and SOIL::Variable< T, x, y >.