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

PersistentObject Class Reference
[Format]

#include <OpenMS/FORMAT/PersistentObject.h>

Inheritance diagram for PersistentObject:

DPeakArray DPeakArray< ConsensusElementT > MSExperiment MSSpectrum ConsensusMap

List of all members.


Detailed Description

Base class for all persistent objects.

Interface for all classes that can be stored persistently in the OpenMS DB.

Public Member Functions

 PersistentObject ()
 Default constructor.
virtual ~PersistentObject ()
 Destructor.
PersistentObjectoperator= (const PersistentObject &rhs)
 Assignment operator.
const UIDgetPersistenceId () const
 Returns the persistence id.
void setPersistenceId (const UID &persistence_id)
 Sets the persistence id.
void clearId (bool deep=true)
 Clears the persistence id.

Protected Member Functions

virtual void clearChildIds_ ()=0
 Clears the persistence id of all sub-objects.

Protected Attributes

UID persistence_id_
 A persistence id used to refer the data back to the source.


Constructor & Destructor Documentation

PersistentObject (  ) 

Default constructor.

virtual ~PersistentObject (  )  [virtual]

Destructor.


Member Function Documentation

PersistentObject& operator= ( const PersistentObject rhs  ) 

Assignment operator.

const UID& getPersistenceId (  )  const

Returns the persistence id.

This id is only used in the DBAdapter the id is used to connect the object to the data stored in the DB.

void setPersistenceId ( const UID persistence_id  ) 

Sets the persistence id.

This id is only used in the DBAdapter the id is used to connect the object to the data stored in the DB.
Do not set the persistence id unless you know what you are doing!

void clearId ( bool  deep = true  ) 

Clears the persistence id.

Sets the id to 0.

Parameters:
deep determines which ids are cleared. false means that only the id of the current object is reset. true means that the ids of all sub-objects are reset as well (default).

virtual void clearChildIds_ (  )  [protected, pure virtual]

Clears the persistence id of all sub-objects.

Implemented in DPeakArray, MSExperiment, MSSpectrum, DPeakArray< OpenMS::RawDataPoint1D >, DPeakArray< ConsensusElementT >, DPeakArray< AlignmentT::ConsensusElementType >, DPeakArray< ConsensusElementType >, and MSExperiment< OpenMS::PickedPeak1D >.


Member Data Documentation

UID persistence_id_ [protected]

A persistence id used to refer the data back to the source.


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:45 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1