Public Types | Static Public Member Functions | Static Private Attributes | List of all members
RTT::types::GlobalsRepository Class Reference

#include <GlobalsRepository.hpp>

Inheritance diagram for RTT::types::GlobalsRepository:
Inheritance graph

Public Types

typedef boost::shared_ptr< GlobalsRepositoryshared_ptr
- Public Types inherited from RTT::ConfigurationInterface
typedef std::vector< std::string > AttributeNames
typedef std::vector< base::AttributeBase * > AttributeObjects

Static Public Member Functions

static shared_ptr Instance ()
static void Release ()

Static Private Attributes

static shared_ptr mInstance

Additional Inherited Members

- Public Member Functions inherited from RTT::ConfigurationInterface
template<class T >
bool addAttribute (const std::string &name, T &attr)
template<class T >
Attribute< T > & addAttribute (const std::string &name, Attribute< T > &attr)
bool addAttribute (base::AttributeBase &a)
template<class T >
bool addConstant (const std::string &name, const T &cnst)
template<class T >
Constant< T > & addConstant (const std::string &name, Constant< T > &cnst)
bool addConstant (base::AttributeBase &c)
template<class T >
Property< T > & addProperty (const std::string &name, T &prop)
template<class T >
Property< T > & addProperty (const std::string &name, Property< T > &prop)
bool addProperty (base::PropertyBase &pb)
void clear ()
 ConfigurationInterface ()
ConfigurationInterfacecopy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &repl, bool instantiate) const
base::AttributeBasegetAttribute (const std::string &name) const
AttributeNames getAttributeNames () const
base::AttributeBasegetConstant (const std::string &name) const
base::PropertyBasegetProperty (const std::string &name) const
base::AttributeBasegetValue (const std::string &name) const
AttributeObjects const & getValues () const
bool hasAttribute (const std::string &name) const
bool hasProperty (const std::string &name) const
void loadValues (AttributeObjects const &new_values)
PropertyBagproperties ()
void removeAttribute (const std::string &name)
bool removeProperty (base::PropertyBase &p)
bool removeValue (const std::string &name)
bool setValue (base::AttributeBase *ab)
 ~ConfigurationInterface ()
- Protected Types inherited from RTT::ConfigurationInterface
typedef std::vector< base::AttributeBase * > map_t
- Protected Member Functions inherited from RTT::ConfigurationInterface
bool chkPtr (const std::string &where, const std::string &name, const void *ptr)
- Protected Attributes inherited from RTT::ConfigurationInterface
PropertyBag bag
map_t values

Detailed Description

An RTT::ConfigurationInterface for holding global variables. The RTT uses this to export enumerations to scripting, but users may extend this as well for their own applications.

It is recommended to use the setValue() function to add globals, such that they become owned by the GlobalsRepository.

Definition at line 54 of file GlobalsRepository.hpp.

Member Typedef Documentation

Definition at line 58 of file GlobalsRepository.hpp.

Member Function Documentation

GlobalsRepository::shared_ptr GlobalsRepository::Instance ( )

Definition at line 45 of file GlobalsRepository.cpp.

void GlobalsRepository::Release ( )

Frees all globals.

Definition at line 52 of file GlobalsRepository.cpp.

Member Data Documentation

GlobalsRepository::shared_ptr GlobalsRepository::mInstance

Definition at line 66 of file GlobalsRepository.hpp.

The documentation for this class was generated from the following files:

Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:46