Public Types | Public Member Functions | Public Attributes | List of all members
TheServer Class Reference
Inheritance diagram for TheServer:
Inheritance graph
[legend]

Public Types

enum  { INITIAL, CALL, SEND, FINAL }
 
- 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 {
  Init, PreOperational, FatalError, Exception,
  Stopped, Running, RunTimeError
}
 

Public Member Functions

void callBackPeer (TaskContext *peer, string const &opname)
 
void resetCallBackPeer ()
 
 TheServer (string name)
 
 TheServer (string name)
 
void updateHook ()
 
void updateHook ()
 
 ~TheServer ()
 
 ~TheServer ()
 
- Public Member Functions inherited from RTT::TaskContext
virtual void clear ()
 
base::ActivityInterfacegetActivity ()
 
template<typename T >
T * getActivity ()
 
virtual const std::string & getName () const
 
virtual bool ready ()
 
bool setActivity (base::ActivityInterface *new_act)
 
virtual bool start ()
 
virtual bool stop ()
 
 TaskContext (const std::string &name, TaskState initial_state=Stopped)
 
virtual ~TaskContext ()
 
virtual bool addPeer (TaskContext *peer, std::string alias="")
 
virtual void removePeer (const std::string &name)
 
virtual void removePeer (TaskContext *peer)
 
virtual bool connectPeers (TaskContext *peer)
 
virtual void disconnect ()
 
virtual void disconnectPeers (const std::string &name)
 
virtual PeerList getPeerList () const
 
virtual bool hasPeer (const std::string &peer_name) const
 
virtual TaskContextgetPeer (const std::string &peer_name) const
 
Service::shared_ptr provides ()
 
Service::shared_ptr provides (const std::string &service_name)
 
ServiceRequester::shared_ptr requires ()
 
ServiceRequester::shared_ptr requires (const std::string &service_name)
 
virtual bool connectServices (TaskContext *peer)
 
template<class ServiceType >
boost::shared_ptr< ServiceType > getProvider (const std::string &name)
 
bool loadService (const std::string &service_name)
 
template<class Signature >
Operation< Signature > & addOperation (Operation< Signature > &op)
 
template<class Func , class Service >
Operation< typename internal::GetSignature< Func >::Signature > & addOperation (const std::string name, Func func, Service *serv, ExecutionThread et=ClientThread)
 
template<class Signature >
Operation< Signature > & addOperation (const std::string name, Signature *func, ExecutionThread et=ClientThread)
 
OperationInterfacePartgetOperation (std::string name)
 
OperationInterfaceoperations ()
 
template<class T >
bool addAttribute (const std::string &name, T &attr)
 
template<class T >
bool addConstant (const std::string &name, const T &attr)
 
bool addAttribute (base::AttributeBase &a)
 
base::AttributeBasegetAttribute (const std::string &name) const
 
ConfigurationInterfaceattributes ()
 
template<class T >
Property< T > & addProperty (const std::string &name, T &attr)
 
bool addProperty (base::PropertyBase &pb)
 
base::PropertyBasegetProperty (const std::string &name) const
 
PropertyBagproperties ()
 
base::PortInterfaceaddPort (const std::string &name, base::PortInterface &port)
 
base::PortInterfaceaddPort (base::PortInterface &port)
 
base::InputPortInterfaceaddEventPort (const std::string &name, base::InputPortInterface &port, SlotFunction callback=SlotFunction())
 
base::InputPortInterfaceaddEventPort (base::InputPortInterface &port, SlotFunction callback=SlotFunction())
 
base::PortInterfacegetPort (const std::string &name) const
 
DataFlowInterfaceports ()
 
const DataFlowInterfaceports () const
 
virtual bool connectPorts (TaskContext *peer)
 
- Public Member Functions inherited from RTT::base::TaskCore
const ExecutionEngineengine () const
 
ExecutionEngineengine ()
 
unsigned int getCycleCounter () const
 
unsigned int getIOCounter () const
 
virtual TaskState getTargetState () const
 
virtual TaskState getTaskState () const
 
unsigned int getTimeOutCounter () const
 
unsigned int getTriggerCounter () const
 
 TaskCore (TaskState initial_state=Stopped, const std::string &name=std::string())
 
virtual ~TaskCore ()
 
virtual bool configure ()
 
virtual bool activate ()
 
virtual bool cleanup ()
 
virtual bool isConfigured () const
 
virtual bool isActive () const
 
virtual bool isRunning () const
 
virtual Seconds getPeriod () const
 
virtual bool setPeriod (Seconds s)
 
virtual unsigned getCpuAffinity () const
 
virtual bool setCpuAffinity (unsigned cpu)
 
virtual bool inFatalError () const
 
virtual bool inException () const
 
virtual bool inRunTimeError () const
 
virtual bool update ()
 
virtual bool trigger ()
 
virtual void error ()
 
virtual bool recover ()
 
- Public Member Functions inherited from OperationsFixture
bool assertBool (bool b)
 
bool assertEqual (int a, int b)
 
bool assertMsg (bool b, const std::string &msg)
 
bool comstr (const std::string &cs)
 
void createOperationCallerFactories (TaskContext *target)
 
void createOperationCallerFactories0 (TaskContext *target)
 
void createOperationCallerFactories1 (TaskContext *target)
 
void createOperationCallerFactories2 (TaskContext *target)
 
void createOperationCallerFactories3 (TaskContext *target)
 
void createOperationCallerFactories4 (TaskContext *target)
 
void createOperationCallerFactories5 (TaskContext *target)
 
void createOperationCallerFactories6 (TaskContext *target)
 
void createOperationCallerFactories7 (TaskContext *target)
 
bool fail ()
 
int getI () const
 
bool good ()
 
int increase ()
 
bool isTrue (bool b)
 
double m0 (void)
 
const double & m0cr ()
 
void m0except (void)
 
double & m0r ()
 
double m1 (int i)
 
double m1cr (const double &a)
 
double m1r (double &a)
 
double m2 (int i, double d)
 
double m3 (int i, double d, bool c)
 
double m4 (int i, double d, bool c, std::string s)
 
double m5 (int i, double d, bool c, std::string s, float f)
 
double m6 (int i, double d, bool c, std::string s, float f, char h)
 
double m7 (int i, double d, bool c, std::string s, float f, char h, unsigned int st)
 
 OperationsFixture ()
 
void print (const std::string &what)
 
void printNumber (const std::string &what, int n)
 
void resetI ()
 
void * returnAddressOf (int &i)
 
const void * returnAddressOfConst (const int &i)
 
int sleepAndIncrement (int seconds)
 
void vm0 (void)
 
 ~OperationsFixture ()
 

Public Attributes

int callBackPeer_count
 
enum TheServer:: { ... }  callBackPeer_step
 
InputPort< double > mi1
 
OutputPort< double > mo1
 
corba::TaskContextServerts
 
- Public Attributes inherited from OperationsFixture
TaskContextcaller
 
int i
 
double ret
 
TaskContexttc
 

Additional Inherited Members

- 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 cleanupHook ()
 
virtual bool configureHook ()
 
virtual void errorHook ()
 
virtual void exception ()
 
virtual void exceptionHook ()
 
virtual void fatal ()
 
virtual bool startHook ()
 
virtual void stopHook ()
 
- 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
 

Detailed Description

Definition at line 47 of file corba_ipc_server.cpp.

Member Enumeration Documentation

anonymous enum
Enumerator
INITIAL 
CALL 
SEND 
FINAL 

Definition at line 53 of file corba_ipc_server.cpp.

Constructor & Destructor Documentation

TheServer::TheServer ( string  name)
inline

Definition at line 56 of file corba_ipc_server.cpp.

TheServer::~TheServer ( )
inline

Definition at line 66 of file corba_ipc_server.cpp.

TheServer::TheServer ( string  name)
inline

Definition at line 43 of file corba_mqueue_ipc_server.cpp.

TheServer::~TheServer ( )
inline

Definition at line 49 of file corba_mqueue_ipc_server.cpp.

Member Function Documentation

void TheServer::callBackPeer ( TaskContext peer,
string const &  opname 
)
inline

Definition at line 80 of file corba_ipc_server.cpp.

void TheServer::resetCallBackPeer ( )
inline

Definition at line 103 of file corba_ipc_server.cpp.

void TheServer::updateHook ( )
inlinevirtual

Function where the user must insert his 'application' code. When the ExecutionEngine's Activity is a periodic, this function is called by the ExecutionEngine in each periodic step after all messages are processed. When it is executed by a non periodic activity, this function is called after a message is received and executed. It should not loop forever, since no commands or events are processed when this function executes. The default implementation is an empty function.

Reimplemented from RTT::base::TaskCore.

Definition at line 53 of file corba_mqueue_ipc_server.cpp.

void TheServer::updateHook ( )
inlinevirtual

Function where the user must insert his 'application' code. When the ExecutionEngine's Activity is a periodic, this function is called by the ExecutionEngine in each periodic step after all messages are processed. When it is executed by a non periodic activity, this function is called after a message is received and executed. It should not loop forever, since no commands or events are processed when this function executes. The default implementation is an empty function.

Reimplemented from RTT::base::TaskCore.

Definition at line 70 of file corba_ipc_server.cpp.

Member Data Documentation

int TheServer::callBackPeer_count

Definition at line 54 of file corba_ipc_server.cpp.

enum { ... } TheServer::callBackPeer_step
InputPort< double > TheServer::mi1

Definition at line 51 of file corba_ipc_server.cpp.

OutputPort< double > TheServer::mo1

Definition at line 52 of file corba_ipc_server.cpp.

corba::TaskContextServer * TheServer::ts

Definition at line 78 of file corba_ipc_server.cpp.


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


rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:46