Skip to content

Inscoper::NBO::Project

Represents the XML element Project. More...

#include <Project.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
Project()
~Project()
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 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 setID(const Inscoper::NBO::ProjectID_TypePtr & value, bool validate =true)
Sets the value of the ID attribute.
ProjectID_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 setDescription(const Inscoper::NBO::Project::InlineDescriptionPtr & value, bool validate =true)
Sets the value of the Description element.
Inscoper::NBO::Project::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 setExperimenterRef(const Inscoper::NBO::ExperimenterRefPtr & value, bool validate =true)
Sets the value of the ExperimenterRef element.
Inscoper::NBO::ExperimenterRefPtr getExperimenterRef() const
Returns the value of the ExperimenterRef element.
void resetExperimenterRef()
Resets the ExperimenterRef element to an unset state.
bool hasExperimenterRef() const
Checks whether the optional ExperimenterRef element is present.
void setExperimenterGroupRef(const Inscoper::NBO::ExperimenterGroupRefPtr & value, bool validate =true)
Sets the value of the ExperimenterGroupRef element.
Inscoper::NBO::ExperimenterGroupRefPtr getExperimenterGroupRef() const
Returns the value of the ExperimenterGroupRef element.
void resetExperimenterGroupRef()
Resets the ExperimenterGroupRef element to an unset state.
bool hasExperimenterGroupRef() const
Checks whether the optional ExperimenterGroupRef element is present.
void setDatasetRef_List(const std::vector< Inscoper::NBO::DatasetRefPtr > & value, bool validate =true)
Sets the list of DatasetRef elements.
std::vector< Inscoper::NBO::DatasetRefPtr > getDatasetRef_List() const
Returns the list of DatasetRef elements.
void addToDatasetRef_List(const Inscoper::NBO::DatasetRefPtr & value, bool validate =true)
Adds a new DatasetRef element to this object.
void clearDatasetRef_List()
Clear the list of DatasetRef.
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< Project > fromBase(NBOBaseClassPtr base)
Cast a NBOBaseClass to a Project.
const std::set< std::string > & getNameAllowedValues()
Returns the allowed values for this attribut.

Detailed Description

class Inscoper::NBO::Project;

Represents the XML element Project.

The Project ID is required. Datasets can be grouped into projects using a many-to-many relationship. A Dataset may belong to one or more Projects by including one or more ProjectRef elements which refer to Project IDs. Projects do not directly contain images - only by virtue of containing datasets, which themselves contain images.

Public Types Documentation

typedef InlineDescriptionPtr

Public Functions Documentation

function Project

function ~Project

function getTypeName

function getXMLName

function getNBOType

function getChildren

function getSubElements

function fromJsonFile

function fromJsonString

function fromXmlFile

function fromXmlString

function toXmlFile

function toXmlString

function setName

function getName

function resetName

function hasName

function setID

function getID

function resetID

function hasID

function setDescription

function getDescription

function resetDescription

function hasDescription

function setExperimenterRef

function getExperimenterRef

function resetExperimenterRef

function hasExperimenterRef

function setExperimenterGroupRef

function getExperimenterGroupRef

function resetExperimenterGroupRef

function hasExperimenterGroupRef

function setDatasetRef_List

function getDatasetRef_List

function addToDatasetRef_List

function clearDatasetRef_List

function setAnnotationRef_List

function getAnnotationRef_List

function addToAnnotationRef_List

function clearAnnotationRef_List

function fromBase

function getNameAllowedValues