Skip to content

Inscoper::NBO::BinaryFile

Represents the XML element BinaryFile. More...

#include <BinaryFile.h>

Inherits from NBOBaseClass

Public Functions

Name
BinaryFile()
~BinaryFile()
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 setFileName(const std::string & value, bool validate =true)
Sets the value of the FileName attribute.
std::string getFileName() const
Returns the value of the FileName attribute.
void resetFileName()
Resets the FileName attribute to an unset state.
bool hasFileName() const
Checks whether the FileName attribute is present.
void setSize(const Inscoper::NBO::NonNegativeLong_TypePtr & value, bool validate =true)
Sets the value of the Size attribute.
NonNegativeLong_TypePtr getSize() const
Returns the value of the Size attribute.
void resetSize()
Resets the Size attribute to an unset state.
bool hasSize() const
Checks whether the optional Size attribute is present.
void setMIMEType(const std::string & value, bool validate =true)
Sets the value of the MIMEType attribute.
std::string getMIMEType() const
Returns the value of the MIMEType attribute.
void resetMIMEType()
Resets the MIMEType attribute to an unset state.
bool hasMIMEType() const
Checks whether the MIMEType attribute is present.
void setbinaryfile_choice(const Inscoper::NBO::BinaryFile_ChoicePtr & value, bool validate =true)
Sets the value of the binaryfile_choice element.
Inscoper::NBO::BinaryFile_ChoicePtr getbinaryfile_choice() const
Returns the value of the binaryfile_choice element.
void resetbinaryfile_choice()
Resets the binaryfile_choice element to an unset state.
bool hasbinaryfile_choice() const
Checks whether the optional binaryfile_choice element is present.
std::shared_ptr< BinaryFile > fromBase(NBOBaseClassPtr base)
Cast a NBOBaseClass to a BinaryFile.
const std::set< std::string > & getFileNameAllowedValues()
Returns the allowed values for this attribut.
const std::set< std::string > & getMIMETypeAllowedValues()
Returns the allowed values for this attribut.

Detailed Description

class Inscoper::NBO::BinaryFile;

Represents the XML element BinaryFile.

Size of the uncompressed file. [unit:bytes]

Public Functions Documentation

function BinaryFile

function ~BinaryFile

function getTypeName

function getXMLName

function getNBOType

function getChildren

function getSubElements

function fromJsonFile

function fromJsonString

function fromXmlFile

function fromXmlString

function toXmlFile

function toXmlString

function setFileName

function getFileName

function resetFileName

function hasFileName

function setSize

function getSize

function resetSize

function hasSize

function setMIMEType

function getMIMEType

function resetMIMEType

function hasMIMEType

function setbinaryfile_choice

function getbinaryfile_choice

function resetbinaryfile_choice

function hasbinaryfile_choice

function fromBase

function getFileNameAllowedValues

function getMIMETypeAllowedValues