ATLAS Offline Software
Loading...
Searching...
No Matches
TProperty.cxx File Reference
#include "AsgTools/TProperty.h"
#include <cassert>
Include dependency graph for TProperty.cxx:

Go to the source code of this file.

Namespaces

namespace  asg
namespace  asg::detail

Functions

StatusCode asg::detail::packStringMap (const std::map< std::string, std::string > &value, std::string &result)
StatusCode asg::detail::packStringVector (const std::vector< std::string > &value, std::string &result)
StatusCode asg::detail::packStringSingle (const std::string &value, std::string &result)
StatusCode asg::detail::unpackStringSingle (const std::string &value, std::string &result)
StatusCode asg::detail::unpackStringVector (const std::string &value, std::vector< std::string > &result)
StatusCode asg::detail::unpackStringMap (const std::string &value, std::map< std::string, std::string > &result)
PropertycreateProperty (const bool &rval)
 Create a boolean propert.
PropertycreateProperty (const int &rval)
 Create an integer property.
PropertycreateProperty (const float &rval)
 Create a float property.
PropertycreateProperty (const double &rval)
 Create a double property.
PropertycreateProperty (const std::string &rval)
 Create a string property.
PropertycreateProperty (const std::vector< int > &rval)
 Create an integer vector property.
PropertycreateProperty (const std::vector< float > &rval)
 Create a floating point vector property.
PropertycreateProperty (const std::vector< std::string > &rval)
 Create a string vector property.

Function Documentation

◆ createProperty() [1/8]

Property * createProperty ( const bool & rval)

Create a boolean propert.

Definition at line 589 of file TProperty.cxx.

589 {
590 return new TProperty< bool >( const_cast< bool& >( rval ), Property::BOOL );
591}
Templated wrapper around user properties.
Definition TProperty.h:28

◆ createProperty() [2/8]

Property * createProperty ( const double & rval)

Create a double property.

Definition at line 602 of file TProperty.cxx.

602 {
603 return new TProperty< double >( const_cast< double& >( rval ),
605}

◆ createProperty() [3/8]

Property * createProperty ( const float & rval)

Create a float property.

Definition at line 597 of file TProperty.cxx.

597 {
598 return new TProperty< float >( const_cast< float& >( rval ),
600}

◆ createProperty() [4/8]

Property * createProperty ( const int & rval)

Create an integer property.

Definition at line 593 of file TProperty.cxx.

593 {
594 return new TProperty< int >( const_cast< int& >( rval ), Property::INT );
595}

◆ createProperty() [5/8]

Property * createProperty ( const std::string & rval)

Create a string property.

Definition at line 607 of file TProperty.cxx.

607 {
608 return new TProperty< std::string >( const_cast< std::string& >( rval ),
610}

◆ createProperty() [6/8]

Property * createProperty ( const std::vector< float > & rval)

Create a floating point vector property.

Definition at line 618 of file TProperty.cxx.

618 {
619 typedef Property::FloatVector vecFloat_t;
620 return new TProperty< vecFloat_t >( const_cast< vecFloat_t& >( rval ),
622}
@ FLOATVECTOR
Definition Property.h:35
std::vector< float > FloatVector
Convenience type declaration for a float vector.
Definition Property.h:44

◆ createProperty() [7/8]

Property * createProperty ( const std::vector< int > & rval)

Create an integer vector property.

Definition at line 612 of file TProperty.cxx.

612 {
613 typedef Property::IntVector vecInt_t;
614 return new TProperty< vecInt_t >( const_cast< vecInt_t& >( rval ),
616}
std::vector< int > IntVector
Convenience type declaration for an integer vector.
Definition Property.h:42
@ INTVECTOR
Definition Property.h:34

◆ createProperty() [8/8]

Property * createProperty ( const std::vector< std::string > & rval)

Create a string vector property.

Definition at line 624 of file TProperty.cxx.

624 {
625 typedef Property::StringVector vecString_t;
626 return new TProperty< vecString_t >( const_cast< vecString_t& >( rval ),
628}
std::vector< std::string > StringVector
Convenience type declaration for a string vector.
Definition Property.h:46
@ STRINGVECTOR
Definition Property.h:36