Property Class Reference

#include <Property.h>

Inheritance diagram for Property:
TProperty< T >

List of all members.

Public Types

enum  Type {
  UNKNOWNTYPE, BOOL, INT, FLOAT,
  DOUBLE, STRING, INTVECTOR, FLOATVECTOR,
  STRINGVECTOR, TOOLHANDLE, TOOLHANDLEARRAY
}
 

Property type enumeration.


typedef std::vector< int > IntVector
 Convenience type declaration for an integer vector.
typedef std::vector< float > FloatVector
 Convenience type declaration for a float vector.
typedef std::vector< std::string > StringVector
 Convenience type declaration for a string vector.

Public Member Functions

 Property ()
 Default constructor.
 Property (Type type)
 Constructor with a type.
virtual ~Property ()
 Destructor.
bool isValid () const
Type type () const
 Return the type index.
const std::string & typeName () const
 Return the type name.
virtual int setFrom (const Property &rhs)
virtual StatusCode getString (std::string &result) const
 get the property as a string
virtual StatusCode setString (const std::string &value)
 set the property from a string

Static Public Member Functions

static const std::string & name (Type type)
 Function returning a user-readable name for a property type.

Detailed Description

Support class for PropertyMgr

Base class for all property types that can be set on a tool.

Author:
David Adams <dladams@bnl.gov>
Revision
802972
Date
2017-04-15 20:13:17 +0200 (Sat, 15 Apr 2017)

Member Function Documentation

StatusCode Property::getString ( std::string &  result  )  const [virtual]

get the property as a string

Guarantee
strong
Failures
no string conversion available

Reimplemented in TProperty< T >.

bool Property::isValid (  )  const

Return if this is a valid property. Must have a known type.

StatusCode Property::setString ( const std::string &  value  )  [virtual]

set the property from a string

Guarantee
basic
Failures
no string conversion available
format errors

Reimplemented in TProperty< T >.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1