INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

hydroutil::Context Class Reference

Driver's properties, tracer, status etc. More...

#include <context.h>

List of all members.

Public Member Functions

 Context (const hydroutil::Properties &props, gbxutilacfr::Tracer &tr, gbxutilacfr::Status &st)
 Constructor.
const hydroutil::Propertiesproperties () const
 Const access to driver's properties.
hydroutil::Propertiesproperties ()
 Access to driver's properties.
gbxutilacfr::Tracer & tracer () const
 Access tracing functions.
gbxutilacfr::Status & status () const
 Access status functions.

Detailed Description

Driver's properties, tracer, status etc.

Contains pointers to driver's tracer and status handler. Makes a copy of driver properties. With this class it's easy to pass all this information to at the time of driver instantiation.

A note on thread safety. None of access functions are thread-safe. However, all object which are referenced are themselves thread-safe.

This means that once a copy of of Context is created, it is safe to use it from different threads. Pass context by const reference and store a copy, e.g. a class definition would look like this:

class MyClass
{
public:
    MyClass( const hydroutil::Context & context )
        : context_(context) {};
private:
    hydroutil::Context context_;
}

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

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5