Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Protected Attributes

DocumentIdentifier Class Reference
[Metadata]

Manage source document information. More...

#include <OpenMS/METADATA/DocumentIdentifier.h>

Inheritance diagram for DocumentIdentifier:
ConsensusMap ExperimentalSettings FeatureMap< FeatureT > MSExperiment< PeakT, ChromatogramPeakT > MSQuantifications

List of all members.

Public Member Functions

Constructors and Destructors

 DocumentIdentifier ()
 default constructor
 DocumentIdentifier (const DocumentIdentifier &source)
 Copy constructor.
DocumentIdentifieroperator= (const DocumentIdentifier &source)
 Assignment operator.
bool operator== (const DocumentIdentifier &rhs) const
 Equality operator.
virtual ~DocumentIdentifier ()
 destructor
Acessors

void setIdentifier (const String &id)
 set document identifier (e.g. an LSID)
const StringgetIdentifier () const
 retrieve document identifier (e.g. an LSID)
void swap (DocumentIdentifier &from)
 exchange content with from
void setLoadedFilePath (const String &file_name)
 set the file_name_ according to absolute path of the file loaded from preferrably done whilst loading
const StringgetLoadedFilePath () const
 get the file_name_ which is the absolute path to the file loaded from
void setLoadedFileType (const String &file_name)
 set the file_type according to the type of the file loaded from (see FileHandler::Type) preferrably done whilst loading
const FileTypes::TypegetLoadedFileType () const
 get the file_type (e.g. featureXML, consensusXML, mzData, mzXML, mzML, ...) of the file loaded from

Protected Attributes

String id_
 the ID (e.g. LSID)
String file_path_
 the path to the loaded file
FileTypes::Type file_type_
 the type of the loaded file

Detailed Description

Manage source document information.

This class stored information about the source document. Primarily this is the document id e.g. a LSID.

For source files additional information can be stored:


Constructor & Destructor Documentation

default constructor

Referenced by FeatureMap< Feature >::clear().

DocumentIdentifier ( const DocumentIdentifier source  ) 

Copy constructor.

virtual ~DocumentIdentifier (  )  [virtual]

destructor


Member Function Documentation

const String& getIdentifier (  )  const

retrieve document identifier (e.g. an LSID)

Referenced by FeatureMap< Feature >::operator+=().

const String& getLoadedFilePath (  )  const

get the file_name_ which is the absolute path to the file loaded from

Referenced by OpenSwathHelper::checkSwathMapAndSelectTransitions().

const FileTypes::Type& getLoadedFileType (  )  const

get the file_type (e.g. featureXML, consensusXML, mzData, mzXML, mzML, ...) of the file loaded from

DocumentIdentifier& operator= ( const DocumentIdentifier source  ) 

Assignment operator.

bool operator== ( const DocumentIdentifier rhs  )  const

Equality operator.

void setIdentifier ( const String id  ) 

set document identifier (e.g. an LSID)

void setLoadedFilePath ( const String file_name  ) 

set the file_name_ according to absolute path of the file loaded from preferrably done whilst loading

void setLoadedFileType ( const String file_name  ) 

set the file_type according to the type of the file loaded from (see FileHandler::Type) preferrably done whilst loading

void swap ( DocumentIdentifier from  ) 

exchange content with from


Member Data Documentation

String file_path_ [protected]

the path to the loaded file

the type of the loaded file

String id_ [protected]

the ID (e.g. LSID)


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:56 using doxygen 1.7.1