Skip to content

Inscoper::NBO::External

Represents the XML element External. More...

#include <External.h>

Inherits from NBOBaseClass

Public Functions

Name
External()
~External()
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 sethref(const std::string & value, bool validate =true)
Sets the value of the href attribute.
std::string gethref() const
Returns the value of the href attribute.
void resethref()
Resets the href attribute to an unset state.
bool hashref() const
Checks whether the href attribute is present.
void setSHA1(const Inscoper::NBO::Hex40_TypePtr & value, bool validate =true)
Sets the value of the SHA1 attribute.
Hex40_TypePtr getSHA1() const
Returns the value of the SHA1 attribute.
void resetSHA1()
Resets the SHA1 attribute to an unset state.
bool hasSHA1() const
Checks whether the optional SHA1 attribute is present.
void setCompression(const std::string & value, bool validate =true)
Sets the value of the Compression attribute.
std::string getCompression() const
Returns the value of the Compression attribute.
void resetCompression()
Resets the Compression attribute to an unset state.
bool hasCompression() const
Checks whether the Compression attribute is present.
std::shared_ptr< External > fromBase(NBOBaseClassPtr base)
Cast a NBOBaseClass to a External.
const std::set< std::string > & gethrefAllowedValues()
Returns the allowed values for this attribut.
const std::set< std::string > & getCompressionAllowedValues()
Returns the allowed values for this attribut.

Detailed Description

class Inscoper::NBO::External;

Represents the XML element External.

No description available in the XSD standard.

Public Functions Documentation

function External

function ~External

function getTypeName

function getXMLName

function getNBOType

function getChildren

function getSubElements

function fromJsonFile

function fromJsonString

function fromXmlFile

function fromXmlString

function toXmlFile

function toXmlString

function sethref

function gethref

function resethref

function hashref

function setSHA1

function getSHA1

function resetSHA1

function hasSHA1

function setCompression

function getCompression

function resetCompression

function hasCompression

function fromBase

function gethrefAllowedValues

function getCompressionAllowedValues