Inscoper::NBO::SensorType_Type
Represents the XML simple type SensorType. More...
#include <SensorType_Type.h>
Inherits from NBOBaseClass
Public Functions
Name
SensorType_Type ()
~SensorType_Type ()
std::string
getTypeName () const override Returns the class type name.
std::string
getXMLName () const override Returns the XML element name corresponding to this class.
ENBOType
getNBOType () const override Returns the NBO Type corresponding to this class.
std::vector< NBOBaseClassPtr >
getChildren () const override Returns a list of all classes derived from this class.
std::vector< NBOBaseClassPtr >
getSubElements () const override Returns a list of all child elements contained in this class.
void
fromJsonFile (const std::string & path, bool validate =true) Populates this object from a JSON file.
void
fromJsonString (const std::string & json_string, bool validate =true) Populates this object from a JSON string.
void
fromXmlFile (const std::string & path, bool validate =true) Populates this object from a XML file.
void
fromXmlString (const std::string & xml_string, bool validate =true) Populates this object from a XML string.
void
toXmlFile (const std::string & filename, bool validate =true) const Serializes this object to an XML file.
std::string
toXmlString (bool validate =true) const Serializes this object to an XML string.
SensorType_Type &
operator= (const std::string & v) Assigns a new value to this object (= operator operator).
operator std::string () const Returns the value of this object (generic conversion operator overload).
void
set (const std::string & v, bool validate =true) Assigns a new value to this object.
std::string
get () const Returns the value of this object.
std::shared_ptr< SensorType_Type >
fromBase (NBOBaseClassPtr base) Cast a NBOBaseClass to a SensorType_Type .
const std::set< std::string > &
getAllowedValues () Returns the allowed values for this object.
const std::string &
getPattern () Returns the pattern for this object.
Friends
Detailed Description
class Inscoper :: NBO :: SensorType_Type ;
Represents the XML simple type SensorType.
No description available in the XSD standard.
Allowed values: [CCD](/LiMi/1.4/nbo/cpp/Classes/class_inscoper_1_1_n_b_o_1_1_c_c_d/), [CMOS](/LiMi/1.4/nbo/cpp/Classes/class_inscoper_1_1_n_b_o_1_1_c_m_o_s/), Other
Public Functions Documentation
function SensorType_Type function ~SensorType_Type function getTypeName
std :: string getTypeName () const override
Returns the class type name.
Return : The class type name
function getXMLName
std :: string getXMLName () const override
Returns the XML element name corresponding to this class.
Return : The XML element name
function getNBOType
ENBOType getNBOType () const override
Returns the NBO Type corresponding to this class.
Return : The NBO Type value
function getChildren
std :: vector < NBOBaseClassPtr > getChildren () const override
Returns a list of all classes derived from this class.
Return : The list of derived classes
function getSubElements
std :: vector < NBOBaseClassPtr > getSubElements () const override
Returns a list of all child elements contained in this class.
Return : The list of child classes
function fromJsonFile
void fromJsonFile (
const std :: string & path ,
bool validate = true
)
Populates this object from a JSON file.
Parameters :
path The path to the JSON file
validate If true, validates constraints on value. Default is true.
function fromJsonString
void fromJsonString (
const std :: string & json_string ,
bool validate = true
)
Populates this object from a JSON string.
Parameters :
json_string The JSON content as a string
validate If true, validates constraints on value. Default is true.
function fromXmlFile
void fromXmlFile (
const std :: string & path ,
bool validate = true
)
Populates this object from a XML file.
Parameters :
path The path to the XML file
validate If true, validates constraints on value. Default is true.
function fromXmlString
void fromXmlString (
const std :: string & xml_string ,
bool validate = true
)
Populates this object from a XML string.
Parameters :
xml_string The XML content as a string
validate If true, validates constraints on value. Default is true.
function toXmlFile
void toXmlFile (
const std :: string & filename ,
bool validate = true
) const
Serializes this object to an XML file.
Parameters :
filename The path to the output XML file
validate If true, validates constraints on value. Default is true.
function toXmlString
std :: string toXmlString (
bool validate = true
) const
Serializes this object to an XML string.
Parameters :
validate If true, validates constraints on value. Default is true.
Return : A string containing the XML representation of this object
function operator=
SensorType_Type & operator = (
const std :: string & v
)
Assigns a new value to this object (= operator operator).
Parameters :
function operator std::string
operator std :: string () const
Returns the value of this object (generic conversion operator overload).
Return : The value of the object
function set
void set (
const std :: string & v ,
bool validate = true
)
Assigns a new value to this object.
Parameters :
v The value to set
validate If true, validates constraints on value. Default is true.
function get
Returns the value of this object.
Return : The value of the object
function fromBase
static std :: shared_ptr < SensorType_Type > fromBase (
NBOBaseClassPtr base
)
Cast a NBOBaseClass to a SensorType_Type .
Parameters :
base The base class to cast
Return : The casted element, or nullptr if the cast fails
function getAllowedValues
static const std :: set < std :: string > & getAllowedValues ()
Returns the allowed values for this object.
Return : The list of allowed values
function getPattern
static const std :: string & getPattern ()
Returns the pattern for this object.
Return : The pattern
Friends
friend operator<<
friend std :: ostream & operator << (
std :: ostream & os ,
const SensorType_Type & u
);
Updated on 2026-10-26 at 15:25:54 +0100