Public Member Functions | Protected Attributes | List of all members
OCL::FileReporting Class Reference

#include <FileReporting.hpp>

Inheritance diagram for OCL::FileReporting:
Inheritance graph
[legend]

Public Member Functions

 FileReporting (const std::string &fr_name)
 
bool screenComponent (const std::string &comp)
 
bool startHook ()
 
void stopHook ()
 
- Public Member Functions inherited from OCL::ReportingComponent
bool addMarshaller (RTT::marsh::MarshallInterface *headerM, RTT::marsh::MarshallInterface *bodyM)
 
bool removeMarshallers ()
 
 ReportingComponent (std::string name="Reporting")
 
virtual ~ReportingComponent ()
 
virtual bool configureHook ()
 
virtual void cleanupHook ()
 
bool reportComponent (const std::string &component)
 
bool unreportComponent (const std::string &component)
 
bool reportPort (const std::string &component, const std::string &port)
 
bool unreportPort (const std::string &component, const std::string &port)
 
bool reportData (const std::string &component, const std::string &dataname)
 
bool unreportData (const std::string &component, const std::string &datasource)
 
bool copydata ()
 
void snapshot ()
 
void cleanReport ()
 
- Public Member Functions inherited from RTT::TaskContext
bool addAttribute (const std::string &name, T &attr)
 
bool addAttribute (base::AttributeBase &a)
 
bool addAttribute (base::AttributeBase &a)
 
bool addAttribute (const std::string &name, T &attr)
 
bool addConstant (const std::string &name, const T &attr)
 
bool addConstant (const std::string &name, const T &attr)
 
base::InputPortInterfaceaddEventPort (const std::string &name, base::InputPortInterface &port, SlotFunction callback=SlotFunction())
 
base::InputPortInterfaceaddEventPort (base::InputPortInterface &port, SlotFunction callback=SlotFunction())
 
Operation< Signature > & addOperation (Operation< Signature > &op)
 
Operation< Signature > & addOperation (Operation< Signature > &op)
 
Operation< typename internal::GetSignature< Func >::Signature > & addOperation (const std::string name, Func func, Service *serv, ExecutionThread et=ClientThread)
 
Operation< Signature > & addOperation (const std::string name, Signature *func, ExecutionThread et=ClientThread)
 
Operation< typename internal::GetSignature< Func >::Signature > & addOperation (const std::string name, Func func, Service *serv, ExecutionThread et=ClientThread)
 
Operation< Signature > & addOperation (const std::string name, Signature *func, ExecutionThread et=ClientThread)
 
virtual bool addPeer (TaskContext *peer, std::string alias="")
 
virtual bool addPeer (TaskContext *peer, std::string alias="")
 
base::PortInterfaceaddPort (const std::string &name, base::PortInterface &port)
 
base::PortInterfaceaddPort (base::PortInterface &port)
 
Property< T > & addProperty (const std::string &name, T &attr)
 
bool addProperty (base::PropertyBase &pb)
 
Property< T > & addProperty (const std::string &name, T &attr)
 
bool addProperty (base::PropertyBase &pb)
 
ConfigurationInterfaceattributes ()
 
ConfigurationInterfaceattributes ()
 
virtual void clear ()
 
virtual bool connectPeers (TaskContext *peer)
 
virtual bool connectPeers (TaskContext *peer)
 
virtual bool connectPorts (TaskContext *peer)
 
virtual bool connectServices (TaskContext *peer)
 
virtual bool connectServices (TaskContext *peer)
 
virtual void disconnect ()
 
virtual void disconnect ()
 
virtual void disconnectPeers (const std::string &name)
 
virtual void disconnectPeers (const std::string &name)
 
base::ActivityInterfacegetActivity ()
 
T * getActivity ()
 
base::AttributeBasegetAttribute (const std::string &name) const
 
base::AttributeBasegetAttribute (const std::string &name) const
 
virtual const std::string & getName () const
 
OperationInterfacePartgetOperation (std::string name)
 
OperationInterfacePartgetOperation (std::string name)
 
virtual TaskContextgetPeer (const std::string &peer_name) const
 
virtual TaskContextgetPeer (const std::string &peer_name) const
 
virtual PeerList getPeerList () const
 
virtual PeerList getPeerList () const
 
base::PortInterfacegetPort (const std::string &name) const
 
base::PropertyBasegetProperty (const std::string &name) const
 
base::PropertyBasegetProperty (const std::string &name) const
 
boost::shared_ptr< ServiceType > getProvider (const std::string &name)
 
boost::shared_ptr< ServiceType > getProvider (const std::string &name)
 
virtual bool hasPeer (const std::string &peer_name) const
 
virtual bool hasPeer (const std::string &peer_name) const
 
bool loadService (const std::string &service_name)
 
bool loadService (const std::string &service_name)
 
OperationInterfaceoperations ()
 
OperationInterfaceoperations ()
 
DataFlowInterfaceports ()
 
const DataFlowInterfaceports () const
 
PropertyBagproperties ()
 
PropertyBagproperties ()
 
Service::shared_ptr provides (const std::string &service_name)
 
Service::shared_ptr provides ()
 
Service::shared_ptr provides ()
 
Service::shared_ptr provides (const std::string &service_name)
 
virtual bool ready ()
 
virtual void removePeer (const std::string &name)
 
virtual void removePeer (TaskContext *peer)
 
virtual void removePeer (TaskContext *peer)
 
virtual void removePeer (const std::string &name)
 
ServiceRequester::shared_ptr requires (const std::string &service_name)
 
ServiceRequester::shared_ptr requires (const std::string &service_name)
 
ServiceRequester::shared_ptr requires ()
 
ServiceRequester::shared_ptr requires ()
 
bool setActivity (base::ActivityInterface *new_act)
 
virtual bool start ()
 
virtual bool stop ()
 
 TaskContext (const std::string &name, TaskState initial_state=Stopped)
 
virtual ~TaskContext ()
 
- Public Member Functions inherited from RTT::base::TaskCore
virtual bool activate ()
 
virtual bool activate ()
 
virtual bool cleanup ()
 
virtual bool cleanup ()
 
virtual bool configure ()
 
virtual bool configure ()
 
const ExecutionEngineengine () const
 
ExecutionEngineengine ()
 
virtual void error ()
 
virtual void error ()
 
virtual unsigned getCpuAffinity () const
 
virtual unsigned getCpuAffinity () const
 
unsigned int getCycleCounter () const
 
unsigned int getIOCounter () const
 
virtual Seconds getPeriod () const
 
virtual Seconds getPeriod () const
 
virtual TaskState getTargetState () const
 
virtual TaskState getTaskState () const
 
unsigned int getTimeOutCounter () const
 
unsigned int getTriggerCounter () const
 
virtual bool inException () const
 
virtual bool inException () const
 
virtual bool inFatalError () const
 
virtual bool inFatalError () const
 
virtual bool inRunTimeError () const
 
virtual bool inRunTimeError () const
 
virtual bool isActive () const
 
virtual bool isActive () const
 
virtual bool isConfigured () const
 
virtual bool isConfigured () const
 
virtual bool isRunning () const
 
virtual bool isRunning () const
 
virtual bool recover ()
 
virtual bool recover ()
 
virtual bool setCpuAffinity (unsigned cpu)
 
virtual bool setCpuAffinity (unsigned cpu)
 
virtual bool setPeriod (Seconds s)
 
virtual bool setPeriod (Seconds s)
 
 TaskCore (TaskState initial_state=Stopped, const std::string &name=std::string())
 
virtual bool trigger ()
 
virtual bool trigger ()
 
virtual bool update ()
 
virtual bool update ()
 
virtual ~TaskCore ()
 

Protected Attributes

RTT::marsh::MarshallInterfacefbody
 
RTT::marsh::MarshallInterfacefheader
 
std::ofstream mfile
 
RTT::Property< std::string > repfile
 
- Protected Attributes inherited from OCL::ReportingComponent
RTT::Property< bool > complexdecompose
 
RTT::Property< std::string > config
 
RTT::Property< bool > decompose
 
RTT::Property< bool > insnapshot
 
Marshallers marshallers
 
RTT::internal::DataSource< bool >::shared_ptr mchecker
 If false, a sequence size has changed. More...
 
bool onlyNewData
 
RTT::PropertyBag report
 
RTT::Property< PropertyBagreport_data
 
RTT::ConnPolicy report_policy
 
Reports root
 
bool snapshotted
 
RTT::os::TimeService::ticks starttime
 
RTT::Property< bool > synchronize_with_logging
 
RTT::Property< RTT::os::TimeService::Secondstimestamp
 
RTT::Property< bool > writeHeader
 
- Protected Attributes inherited from RTT::base::TaskCore
ExecutionEngineee
 
unsigned int mCycleCounter
 
unsigned int mIOCounter
 
std::string mName
 
TaskState mTaskState
 
unsigned int mTimeOutCounter
 
unsigned int mTriggerCounter
 
bool mTriggerOnStart
 

Additional Inherited Members

- Public Types inherited from OCL::ReportingComponent
typedef RTT::DataFlowInterface::Ports Ports
 
- Public Types inherited from RTT::TaskContext
typedef std::vector< std::string > PeerList
 
typedef boost::function< void(base::PortInterface *)> SlotFunction
 
- Public Types inherited from RTT::base::TaskCore
enum  TaskState
 
- Public Attributes inherited from RTT::base::TaskCore
 Exception
 
 FatalError
 
 Init
 
 PreOperational
 
 Running
 
 RunTimeError
 
 Stopped
 
- Protected Types inherited from OCL::ReportingComponent
typedef boost::tuple< std::string, RTT::base::DataSourceBase::shared_ptr, std::string, RTT::base::PropertyBase *, RTT::base::InputPortInterface *, bool, bool > DTupple
 
typedef std::vector< std::pair< boost::shared_ptr< RTT::marsh::MarshallInterface >, boost::shared_ptr< RTT::marsh::MarshallInterface > > > Marshallers
 
typedef std::vector< DTuppleReports
 
enum  T_Types {
  T_QualName = 0, T_PortDS, T_DataType, T_Property,
  T_Port, T_NewData, T_Tracked
}
 Use these to index DTupple objects. More...
 
- Protected Member Functions inherited from OCL::ReportingComponent
void makeReport2 ()
 
bool reportDataSource (std::string tag, std::string type, RTT::base::DataSourceBase::shared_ptr origm, RTT::base::InputPortInterface *ipi, bool)
 
bool screenImpl (const std::string &comp, std::ostream &output)
 
bool unreportDataSource (std::string tag)
 
virtual void updateHook ()
 
- Protected Member Functions inherited from RTT::TaskContext
virtual void dataOnPortCallback (base::PortInterface *port)
 
virtual bool dataOnPortHook (base::PortInterface *port)
 
void forceActivity (base::ActivityInterface *new_act)
 
- Protected Member Functions inherited from RTT::base::TaskCore
virtual bool breakUpdateHook ()
 
virtual void errorHook ()
 
virtual void exception ()
 
virtual void exceptionHook ()
 
virtual void fatal ()
 

Detailed Description

A component which writes data reports to a file.

Definition at line 14 of file FileReporting.hpp.

Constructor & Destructor Documentation

OCL::FileReporting::FileReporting ( const std::string &  fr_name)

Definition at line 17 of file FileReporting.cpp.

Member Function Documentation

bool OCL::FileReporting::screenComponent ( const std::string &  comp)
virtual

Writes the interface status of comp to a file 'comp.screen'.

Reimplemented from OCL::ReportingComponent.

Definition at line 51 of file FileReporting.cpp.

bool OCL::FileReporting::startHook ( )
virtual

Reimplemented from OCL::ReportingComponent.

Definition at line 24 of file FileReporting.cpp.

void OCL::FileReporting::stopHook ( )
virtual

Reimplemented from OCL::ReportingComponent.

Definition at line 42 of file FileReporting.cpp.

Member Data Documentation

RTT::marsh::MarshallInterface* OCL::FileReporting::fbody
protected

Definition at line 29 of file FileReporting.hpp.

RTT::marsh::MarshallInterface* OCL::FileReporting::fheader
protected

Definition at line 28 of file FileReporting.hpp.

std::ofstream OCL::FileReporting::mfile
protected

File to write reports to.

Definition at line 26 of file FileReporting.hpp.

RTT::Property<std::string> OCL::FileReporting::repfile
protected

File name to write reports to.

Definition at line 21 of file FileReporting.hpp.


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


ocl
Author(s): OCL Development Team
autogenerated on Wed Jun 26 2019 19:26:27