Inscoper::NBO::BinaryFile_Choice¶
Represents the XML choice in element BinaryFile.
#include <BinaryFile_Choice.h>
Inherits from NBOBaseClass
Public Types¶
| Name | |
|---|---|
| using std::variant< Inscoper::NBO::BinDataPtr, Inscoper::NBO::ExternalPtr > | BinaryFile_Choice_Variant |
| using std::shared_ptr< BinaryFile_Choice_Variant > | BinaryFile_Choice_VariantPtr |
Public Functions¶
| Name | |
|---|---|
| BinaryFile_Choice() | |
| ~BinaryFile_Choice() | |
| 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. |
| void | setExternal(Inscoper::NBO::ExternalPtr value, bool validate =true) Sets the value of this object as a External element. |
| bool | isExternal() const Checks whether this object is a External element. |
| Inscoper::NBO::ExternalPtr | asExternal() Returns the value of this object as a External element. |
| void | setBinData(Inscoper::NBO::BinDataPtr value, bool validate =true) Sets the value of this object as a BinData element. |
| bool | isBinData() const Checks whether this object is a BinData element. |
| Inscoper::NBO::BinDataPtr | asBinData() Returns the value of this object as a BinData element. |
| std::shared_ptr< BinaryFile_Choice > | fromBase(NBOBaseClassPtr base) Cast a NBOBaseClass to a BinaryFile_Choice. |