Skip to content

Inscoper::NBO::Folder

Represents the XML element Folder. More...

#include <Folder.h>

Inherits from NBOBaseClass

Public Classes

Name
class InlineDescription
Represents the XML element Description.

Public Types

Name
typedef std::shared_ptr< InlineDescription > InlineDescriptionPtr

Public Functions

Name
Folder()
~Folder()
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 setID(const Inscoper::NBO::FolderID_TypePtr & value, bool validate =true)
Sets the value of the ID attribute.
FolderID_TypePtr getID() const
Returns the value of the ID attribute.
void resetID()
Resets the ID attribute to an unset state.
bool hasID() const
Checks whether the optional ID attribute is present.
void setName(const std::string & value, bool validate =true)
Sets the value of the Name attribute.
std::string getName() const
Returns the value of the Name attribute.
void resetName()
Resets the Name attribute to an unset state.
bool hasName() const
Checks whether the Name attribute is present.
void setDescription(const Inscoper::NBO::Folder::InlineDescriptionPtr & value, bool validate =true)
Sets the value of the Description element.
Inscoper::NBO::Folder::InlineDescriptionPtr getDescription() const
Returns the value of the Description element.
void resetDescription()
Resets the Description element to an unset state.
bool hasDescription() const
Checks whether the optional Description element is present.
void setFolderRef_List(const std::vector< Inscoper::NBO::FolderRefPtr > & value, bool validate =true)
Sets the list of FolderRef elements.
std::vector< Inscoper::NBO::FolderRefPtr > getFolderRef_List() const
Returns the list of FolderRef elements.
void addToFolderRef_List(const Inscoper::NBO::FolderRefPtr & value, bool validate =true)
Adds a new FolderRef element to this object.
void clearFolderRef_List()
Clear the list of FolderRef.
void setImageRef_List(const std::vector< Inscoper::NBO::ImageRefPtr > & value, bool validate =true)
Sets the list of ImageRef elements.
std::vector< Inscoper::NBO::ImageRefPtr > getImageRef_List() const
Returns the list of ImageRef elements.
void addToImageRef_List(const Inscoper::NBO::ImageRefPtr & value, bool validate =true)
Adds a new ImageRef element to this object.
void clearImageRef_List()
Clear the list of ImageRef.
void setROIRef_List(const std::vector< Inscoper::NBO::ROIRefPtr > & value, bool validate =true)
Sets the list of ROIRef elements.
std::vector< Inscoper::NBO::ROIRefPtr > getROIRef_List() const
Returns the list of ROIRef elements.
void addToROIRef_List(const Inscoper::NBO::ROIRefPtr & value, bool validate =true)
Adds a new ROIRef element to this object.
void clearROIRef_List()
Clear the list of ROIRef.
void setAnnotationRef_List(const std::vector< Inscoper::NBO::AnnotationRefPtr > & value, bool validate =true)
Sets the list of AnnotationRef elements.
std::vector< Inscoper::NBO::AnnotationRefPtr > getAnnotationRef_List() const
Returns the list of AnnotationRef elements.
void addToAnnotationRef_List(const Inscoper::NBO::AnnotationRefPtr & value, bool validate =true)
Adds a new AnnotationRef element to this object.
void clearAnnotationRef_List()
Clear the list of AnnotationRef.
std::shared_ptr< Folder > fromBase(NBOBaseClassPtr base)
Cast a NBOBaseClass to a Folder.
const std::set< std::string > & getNameAllowedValues()
Returns the allowed values for this attribut.

Detailed Description

class Inscoper::NBO::Folder;

Represents the XML element Folder.

An element specifying a possibly heterogeneous collection of data. Folders may contain Folders so that data may be organized within a tree of Folders. Data may be in multiple Folders but a Folder may not be in more than one other Folder.

Public Types Documentation

typedef InlineDescriptionPtr

Public Functions Documentation

function Folder

function ~Folder

function getTypeName

function getXMLName

function getNBOType

function getChildren

function getSubElements

function fromJsonFile

function fromJsonString

function fromXmlFile

function fromXmlString

function toXmlFile

function toXmlString

function setID

function getID

function resetID

function hasID

function setName

function getName

function resetName

function hasName

function setDescription

function getDescription

function resetDescription

function hasDescription

function setFolderRef_List

function getFolderRef_List

function addToFolderRef_List

function clearFolderRef_List

function setImageRef_List

function getImageRef_List

function addToImageRef_List

function clearImageRef_List

function setROIRef_List

function getROIRef_List

function addToROIRef_List

function clearROIRef_List

function setAnnotationRef_List

function getAnnotationRef_List

function addToAnnotationRef_List

function clearAnnotationRef_List

function fromBase

function getNameAllowedValues