Inscoper::NBO::OME
Represents the XML element OME . More...
#include <OME.h>
Inherits from NBOBaseClass
Public Functions
Detailed Description
class Inscoper :: NBO :: OME ;
Represents the XML element OME .
The OME element is a container for all information objects accessible by OME . These information objects include descriptions of the imaging experiments and the people who perform them, descriptions of the microscope, the resulting images and how they were acquired, the analyses performed on those images, and the analysis results themselves. An OME file may contain any or all of this information. With the creation of the Metadata Only Companion OME-XML and Binary Only OME-TIFF files the top level OME node has changed slightly. It can EITHER: Contain all the previously expected elements OR: Contain a single BinaryOnly element that points at its Metadata Only Companion OME-XML file.
Public Functions Documentation
function OME function ~OME 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 setUUID
void setUUID (
const Inscoper :: NBO :: UniversallyUniqueIdentifier_TypePtr & value ,
bool validate = true
)
Sets the value of the UUID attribute.
Parameters :
value The value to set
validate If true, validates constraints on value. Default is true.
This unique identifier is used to keep track of multi part files. It allows the links between files to survive renaming. While OPTIONAL in the general case this is REQUIRED in a MetadataOnly Companion to a collection of BinaryOnly files.
function getUUID
UniversallyUniqueIdentifier_TypePtr getUUID () const
Returns the value of the UUID attribute.
Return : The value of the attribute
This unique identifier is used to keep track of multi part files. It allows the links between files to survive renaming. While OPTIONAL in the general case this is REQUIRED in a MetadataOnly Companion to a collection of BinaryOnly files.
function resetUUID
Resets the UUID attribute to an unset state.
This unique identifier is used to keep track of multi part files. It allows the links between files to survive renaming. While OPTIONAL in the general case this is REQUIRED in a MetadataOnly Companion to a collection of BinaryOnly files.
function hasUUID
Checks whether the optional UUID attribute is present.
Return : true if the optional attribute has been set, false otherwise
This unique identifier is used to keep track of multi part files. It allows the links between files to survive renaming. While OPTIONAL in the general case this is REQUIRED in a MetadataOnly Companion to a collection of BinaryOnly files.
function setCreator
void setCreator (
const std :: string & value ,
bool validate = true
)
Sets the value of the Creator attribute.
Parameters :
value The value to set
validate If true, validates constraints on value. Default is true.
This is the name of the creating application of the OME-XML and preferably its full version. e.g "CompanyName, SoftwareName, V2.6.3456" This is optional but we hope it will be set by applications writing out OME-XML from scratch.
function getCreator
std :: string getCreator () const
Returns the value of the Creator attribute.
Return : The value of the attribute
This is the name of the creating application of the OME-XML and preferably its full version. e.g "CompanyName, SoftwareName, V2.6.3456" This is optional but we hope it will be set by applications writing out OME-XML from scratch.
function resetCreator
Resets the Creator attribute to an unset state.
This is the name of the creating application of the OME-XML and preferably its full version. e.g "CompanyName, SoftwareName, V2.6.3456" This is optional but we hope it will be set by applications writing out OME-XML from scratch.
function hasCreator
Checks whether the Creator attribute is present.
Return : true if the attribute has been set, false otherwise
This is the name of the creating application of the OME-XML and preferably its full version. e.g "CompanyName, SoftwareName, V2.6.3456" This is optional but we hope it will be set by applications writing out OME-XML from scratch.
function setRights
void setRights (
const Inscoper :: NBO :: RightsPtr & value ,
bool validate = true
)
Sets the value of the Rights element.
Parameters :
value The value to set
validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function getRights
Inscoper :: NBO :: RightsPtr getRights () const
Returns the value of the Rights element.
Return : The value of the element
No description available in the XSD standard.
function resetRights
Resets the Rights element to an unset state.
No description available in the XSD standard.
function hasRights
Checks whether the optional Rights element is present.
Return : true if the optional attribute has been set, false otherwise
No description available in the XSD standard.
function setome_choice
void setome_choice (
const Inscoper :: NBO :: OME_ChoicePtr & value ,
bool validate = true
)
Sets the value of the ome_choice element.
Parameters :
value The value to set
validate If true, validates constraints on value. Default is true.
No description available in the XSD standard.
function getome_choice
Inscoper :: NBO :: OME_ChoicePtr getome_choice () const
Returns the value of the ome_choice element.
Return : The value of the element
No description available in the XSD standard.
function resetome_choice
Resets the ome_choice element to an unset state.
No description available in the XSD standard.
function hasome_choice
bool hasome_choice () const
Checks whether the optional ome_choice element is present.
Return : true if the optional attribute has been set, false otherwise
No description available in the XSD standard.
function fromBase
static std :: shared_ptr < OME > fromBase (
NBOBaseClassPtr base
)
Cast a NBOBaseClass to a OME .
Parameters :
base The base class to cast
Return : The casted element, or nullptr if the cast fails
function getCreatorAllowedValues
static const std :: set < std :: string > & getCreatorAllowedValues ()
Returns the allowed values for this attribut.
Return : The list of allowed values
This is the name of the creating application of the OME-XML and preferably its full version. e.g "CompanyName, SoftwareName, V2.6.3456" This is optional but we hope it will be set by applications writing out OME-XML from scratch.
Updated on 2026-10-26 at 15:25:53 +0100