CMS 3D CMS Logo

DDString Class Reference

a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> More...

#include <DetectorDescription/Core/interface/DDString.h>

Inheritance diagram for DDString:

DDBase< DDName, std::string * >

List of all members.

Public Member Functions

 DDString (const DDName &name, std::string *value)
 creation of a new named constant; if it already existed with the given name, it's overwritten with new values
 DDString (const DDName &name)
 a refenrence to a constant
 DDString ()
 an uninitialized constant; one can assign an initialized constant to make it valid
 operator std::string () const
 convert to a std::string
const std::string & value () const
 return the first stored value; does not check boundaries!


Detailed Description

a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector>

Definition at line 16 of file DDString.h.


Constructor & Destructor Documentation

DDString::DDString (  ) 

an uninitialized constant; one can assign an initialized constant to make it valid

Definition at line 9 of file DDString.cc.

DDString::DDString ( const DDName name  ) 

a refenrence to a constant

Definition at line 12 of file DDString.cc.

References DDI::Singleton< I >::instance(), and DDBase< DDName, std::string * >::prep_.

00012                                       : DDBase<DDName,std::string*>() 
00013 {
00014   prep_ = StoreT::instance().create(name);
00015 }

DDString::DDString ( const DDName name,
std::string *  value 
)

creation of a new named constant; if it already existed with the given name, it's overwritten with new values

Definition at line 17 of file DDString.cc.

References DDI::Singleton< I >::instance(), and DDBase< DDName, std::string * >::prep_.

00018 {
00019   prep_ = StoreT::instance().create(name,vals);
00020 }  


Member Function Documentation

DDString::operator std::string (  )  const [inline]

convert to a std::string

Definition at line 32 of file DDString.h.

References DDBase< DDName, std::string * >::rep().

00032 { return rep(); }

const std::string& DDString::value (  )  const [inline]

return the first stored value; does not check boundaries!

Definition at line 29 of file DDString.h.

References DDBase< DDName, std::string * >::rep().

Referenced by operator<<().

00029 { return rep(); }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:18:13 2009 for CMSSW by  doxygen 1.5.4