Changeset 10545


Ignore:
Timestamp:
May 3, 2011, 7:28:00 PM (8 years ago)
Author:
tbretz
Message:
Added getter for a bool.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventImp.h

    r10486 r10545  
    66
    77#include <boost/function.hpp>
     8//#include <boost/bind/arg.hpp>
    89
    910#include "Time.h"
    1011
    1112class EventImp
    12 {   int              fTargetState;   /// Target state of an event
     13{
     14    int              fTargetState;   /// Target state of an event
    1315    std::vector<int> fAllowedStates; /// List of states in which this event is allowed
    1416
     
    5961
    6062    // Getter for all the data contained (name, format, data and time)
     63    bool              GetBool() const   { return GetText()[0]!=0; }
    6164    short             GetShort()  const { return *reinterpret_cast<const short*>(GetData()); }
    6265    unsigned short    GetUShort() const { return *reinterpret_cast<const unsigned short*>(GetData()); }
Note: See TracChangeset for help on using the changeset viewer.