cgma
CommandFeedback Class Reference

#include <CommandFeedback.hpp>

Inheritance diagram for CommandFeedback:
DeprecatedCommandError

List of all members.

Public Types

typedef const std::type_info & Type

Public Member Functions

 CommandFeedback ()
virtual ~CommandFeedback ()
virtual Type this_type () const =0
template<typename target_type >
target_type & get_reference ()
template<typename target_type >
const target_type & get_reference () const

Detailed Description

Definition at line 8 of file CommandFeedback.hpp.


Member Typedef Documentation

typedef const std::type_info& CommandFeedback::Type

Definition at line 11 of file CommandFeedback.hpp.


Constructor & Destructor Documentation

Definition at line 13 of file CommandFeedback.hpp.

  {}
virtual CommandFeedback::~CommandFeedback ( ) [inline, virtual]

Definition at line 16 of file CommandFeedback.hpp.

  {}

Member Function Documentation

template<typename target_type >
target_type& CommandFeedback::get_reference ( ) [inline]

Definition at line 22 of file CommandFeedback.hpp.

  {
    assert(this->this_type() == target_type::type());
    return *(dynamic_cast<target_type*>(this));
  }
template<typename target_type >
const target_type& CommandFeedback::get_reference ( ) const [inline]

Definition at line 29 of file CommandFeedback.hpp.

  {
    assert(this->this_type() == target_type::type());
    return *(dynamic_cast<const target_type*>(this));
  }
virtual Type CommandFeedback::this_type ( ) const [pure virtual]

Implemented in DeprecatedCommandError.


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