Parent
and Property
objects represent the parents and properties of actual
Entity
objects in Octave / Matlab. Again, please look at the
libcaosdb documentation for details on the
relationships between these classes.
The parent for an Entity.
The constructor takes an optional data argument which may provide initial content. The
typical user will just use the empty constructor Parent()
and add content later.
Note: This method is mostly interesting for internal use of the library, end users probably will never need it.
Convert to a struct which has all the fields that may be needed for interaction with the backend C++ functions.
A property of an Entity. Note that this class is for concrete property instances which are attached
to an Entity. To create new Property entities in CaosDB, use the Entity class with role
“PROPERTY
”.
Must be one of the supported importances “OBLIGATORY
”, “RECOMMENDED
”,
“SUGGESTED
” or “FIX
” (see also the
server documentation).
The exact type of the value property should match the datatype of the Property object.
The constructor takes an optional data argument which may provide initial content. The
typical user will just use the empty constructor Provide()
and add content later.
Set the datatype of this Property in a consistent manner.
Parameters
dtype_name : string
Either the atomic datatype (for scalar simple values) or the ID of the referenced entity (in the case of reference values).
is_reference : logical
True if the value is a reference, else false (the default).
is_list : logical
True if the value is list types, false if it is a scalar (the default).
Note: This method is mostly interesting for internal use of the library, end users probably will never need it.
Convert to a struct which has all the fields that may be needed for interaction with the backend C++ functions.
If the datatype indicates a list value, the value is interpreted as such. It is an error if the value is list-like (cell string or more than one numeric element) while the datatype indicates a scalar value.