CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
ora::RecordSpec Class Reference

#include <Record.h>

Public Member Functions

size_t add (std::string const &name, std::type_info const &type)
 
 RecordSpec ()
 
 ~RecordSpec ()
 

Private Attributes

boost::shared_ptr< RecordSpecImplspecs
 

Friends

class Record
 

Detailed Description

Definition at line 15 of file Record.h.

Constructor & Destructor Documentation

ora::RecordSpec::RecordSpec ( )

Definition at line 33 of file Record.cc.

33 : specs(new RecordSpecImpl) {}
boost::shared_ptr< RecordSpecImpl > specs
Definition: Record.h:24
ora::RecordSpec::~RecordSpec ( )

Definition at line 35 of file Record.cc.

35 {}

Member Function Documentation

size_t ora::RecordSpec::add ( std::string const &  name,
std::type_info const &  type 
)

Definition at line 37 of file Record.cc.

References specs.

37  {
38  // check if already exists
39  TypeHandler const * th = allKnowTypeHandlers(type);
40  // check if 0...
41  specs->items.push_back(RecordSpecImpl::Item(name,th));
42  specs->indexes.insert(std::make_pair(specs->items.back().name,(int)(specs->items.size())-1));
43  return specs->items.size()-1;
44  }
type
Definition: HCALResponse.h:22
boost::shared_ptr< RecordSpecImpl > specs
Definition: Record.h:24

Friends And Related Function Documentation

friend class Record
friend

Definition at line 23 of file Record.h.

Member Data Documentation

boost::shared_ptr<RecordSpecImpl> ora::RecordSpec::specs
private

Definition at line 24 of file Record.h.

Referenced by add(), and ora::Record::init().