CMS 3D CMS Logo

Classes | Public Member Functions | Private Attributes

DropBoxMetadata Class Reference

#include <DropBoxMetadata.h>

List of all members.

Classes

class  Parameters

Public Member Functions

void addRecordParameters (const std::string &record, const Parameters &params)
 DropBoxMetadata ()
 Constructor.
const ParametersgetRecordParameters (const std::string &record) const
bool knowsRecord (const std::string &record) const
virtual ~DropBoxMetadata ()
 Destructor.

Private Attributes

std::map< std::string,
DropBoxMetadata::Parameters
recordSet

Detailed Description

No description available.

Date:
2011/03/02 17:09:28
Revision:
1.2
Author:
G. Cerminara - CERN

Definition at line 16 of file DropBoxMetadata.h.


Constructor & Destructor Documentation

DropBoxMetadata::DropBoxMetadata ( )

Constructor.

Definition at line 16 of file DropBoxMetadata.cc.

{}
DropBoxMetadata::~DropBoxMetadata ( ) [virtual]

Destructor.

Definition at line 18 of file DropBoxMetadata.cc.

{}

Member Function Documentation

void DropBoxMetadata::addRecordParameters ( const std::string &  record,
const Parameters params 
)

Definition at line 41 of file DropBoxMetadata.cc.

References record, and recordSet.

                                                                                        {
  recordSet[record] = params;
}
const DropBoxMetadata::Parameters & DropBoxMetadata::getRecordParameters ( const std::string &  record) const

Definition at line 45 of file DropBoxMetadata.cc.

References recordSet.

Referenced by PCLMetadataWriter::endRun().

                                                                                                {
  return recordSet.find(record)->second;
}
bool DropBoxMetadata::knowsRecord ( const std::string &  record) const

Definition at line 49 of file DropBoxMetadata.cc.

References recordSet.

Referenced by PCLMetadataWriter::endRun().

                                                               {
  if(recordSet.find(record) != recordSet.end()) return true;

  return false;
}

Member Data Documentation

std::map<std::string, DropBoxMetadata::Parameters> DropBoxMetadata::recordSet [private]

Definition at line 49 of file DropBoxMetadata.h.

Referenced by addRecordParameters(), getRecordParameters(), and knowsRecord().