Inscoper::NBO::Folder
Represents the XML element Folder . More...
#include <Folder.h>
Inherits from NBOBaseClass
Public Classes
Public Types
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
typedef std :: shared_ptr < InlineDescription > Inscoper :: NBO :: Folder :: InlineDescriptionPtr ;
Shared pointer for InlineDescription
Public Functions Documentation
function Folder function ~Folder 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 setID
void setID (
const Inscoper :: NBO :: FolderID_TypePtr & value ,
bool validate = true
)
Sets the value of the ID attribute.
Parameters :
value The value to set
validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function getID
FolderID_TypePtr getID () const
Returns the value of the ID attribute.
Return : The value of the attribute
No description available in the XSD standard.
function resetID
Resets the ID attribute to an unset state.
No description available in the XSD standard.
function hasID
Checks whether the optional ID attribute is present.
Return : true if the optional attribute has been set, false otherwise
No description available in the XSD standard.
function setName
void setName (
const std :: string & value ,
bool validate = true
)
Sets the value of the Name attribute.
Parameters :
value The value to set
validate If true, validates constraints on value. Default is true.
A name for the folder that is suitable for presentation to the user.
function getName
std :: string getName () const
Returns the value of the Name attribute.
Return : The value of the attribute
A name for the folder that is suitable for presentation to the user.
function resetName
Resets the Name attribute to an unset state.
A name for the folder that is suitable for presentation to the user.
function hasName
Checks whether the Name attribute is present.
Return : true if the attribute has been set, false otherwise
A name for the folder that is suitable for presentation to the user.
function setDescription
void setDescription (
const Inscoper :: NBO :: Folder :: InlineDescriptionPtr & value ,
bool validate = true
)
Sets the value of the Description element.
Parameters :
value The value to set
validate If true, validates constraints on value. Default is true.
A description for the folder. [plain-text multi-line string]
function getDescription
Inscoper :: NBO :: Folder :: InlineDescriptionPtr getDescription () const
Returns the value of the Description element.
Return : The value of the element
A description for the folder. [plain-text multi-line string]
function resetDescription
Resets the Description element to an unset state.
A description for the folder. [plain-text multi-line string]
function hasDescription
bool hasDescription () const
Checks whether the optional Description element is present.
Return : true if the optional attribute has been set, false otherwise
A description for the folder. [plain-text multi-line string]
function setFolderRef_List
void setFolderRef_List (
const std :: vector < Inscoper :: NBO :: FolderRefPtr > & value ,
bool validate = true
)
Sets the list of FolderRef elements.
Parameters :
value The new list of FolderRef elements
validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function getFolderRef_List
std :: vector < Inscoper :: NBO :: FolderRefPtr > getFolderRef_List () const
Returns the list of FolderRef elements.
Return : The list of FolderRef elements
No description available in the XSD standard.
function addToFolderRef_List
void addToFolderRef_List (
const Inscoper :: NBO :: FolderRefPtr & value ,
bool validate = true
)
Adds a new FolderRef element to this object.
Parameters :
value The element to add
validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function clearFolderRef_List
void clearFolderRef_List ()
Clear the list of FolderRef .
No description available in the XSD standard.
function setImageRef_List
void setImageRef_List (
const std :: vector < Inscoper :: NBO :: ImageRefPtr > & value ,
bool validate = true
)
Sets the list of ImageRef elements.
Parameters :
value The new list of ImageRef elements
validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function getImageRef_List
std :: vector < Inscoper :: NBO :: ImageRefPtr > getImageRef_List () const
Returns the list of ImageRef elements.
Return : The list of ImageRef elements
No description available in the XSD standard.
function addToImageRef_List
void addToImageRef_List (
const Inscoper :: NBO :: ImageRefPtr & value ,
bool validate = true
)
Adds a new ImageRef element to this object.
Parameters :
value The element to add
validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function clearImageRef_List
void clearImageRef_List ()
Clear the list of ImageRef .
No description available in the XSD standard.
function setROIRef_List
void setROIRef_List (
const std :: vector < Inscoper :: NBO :: ROIRefPtr > & value ,
bool validate = true
)
Sets the list of ROIRef elements.
Parameters :
value The new list of ROIRef elements
validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function getROIRef_List
std :: vector < Inscoper :: NBO :: ROIRefPtr > getROIRef_List () const
Returns the list of ROIRef elements.
Return : The list of ROIRef elements
No description available in the XSD standard.
function addToROIRef_List
void addToROIRef_List (
const Inscoper :: NBO :: ROIRefPtr & value ,
bool validate = true
)
Adds a new ROIRef element to this object.
Parameters :
value The element to add
validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function clearROIRef_List
Clear the list of ROIRef .
No description available in the XSD standard.
function setAnnotationRef_List
void setAnnotationRef_List (
const std :: vector < Inscoper :: NBO :: AnnotationRefPtr > & value ,
bool validate = true
)
Sets the list of AnnotationRef elements.
Parameters :
value The new list of AnnotationRef elements
validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function getAnnotationRef_List
std :: vector < Inscoper :: NBO :: AnnotationRefPtr > getAnnotationRef_List () const
Returns the list of AnnotationRef elements.
Return : The list of AnnotationRef elements
No description available in the XSD standard.
function addToAnnotationRef_List
void addToAnnotationRef_List (
const Inscoper :: NBO :: AnnotationRefPtr & value ,
bool validate = true
)
Adds a new AnnotationRef element to this object.
Parameters :
value The element to add
validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function clearAnnotationRef_List
void clearAnnotationRef_List ()
Clear the list of AnnotationRef .
No description available in the XSD standard.
function fromBase
static std :: shared_ptr < Folder > fromBase (
NBOBaseClassPtr base
)
Cast a NBOBaseClass to a Folder .
Parameters :
base The base class to cast
Return : The casted element, or nullptr if the cast fails
function getNameAllowedValues
static const std :: set < std :: string > & getNameAllowedValues ()
Returns the allowed values for this attribut.
Return : The list of allowed values
A name for the folder that is suitable for presentation to the user.
Updated on 2026-10-26 at 15:25:53 +0100