COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
covise::ApplicationProcess Class Reference

#include <covise_appproc.h>

Inheritance diagram for covise::ApplicationProcess:
Inheritance graph
[legend]
Collaboration diagram for covise::ApplicationProcess:
Collaboration graph
[legend]

Public Member Functions

 ApplicationProcess (const char *name, int id)
 
 ApplicationProcess (const char *n, int arc, char *arv[], sender_type send_type=APPLICATIONMODULE)
 
 ~ApplicationProcess ()
 
void handle_shm_msg (Message *)
 
void contact_controller (int port, Host *host)
 
void contact_datamanager (int port)
 
void send_data_msg (Message *)
 
void recv_data_msg (Message *)
 
void exch_data_msg (Message *, int...)
 
Messagewait_for_ctl_msg ()
 
Messagewait_for_data_msg ()
 
Messagecheck_for_ctl_msg (float time=0.0)
 
int check_msg_queue ()
 
voidget_shared_memory_address ()
 
int get_instance ()
 
int get_id ()
 
- Public Member Functions inherited from covise::OrdinaryProcess
 OrdinaryProcess (const char *name, int id, sender_type st)
 
 OrdinaryProcess (const char *n, int arc, char *arv[], sender_type st)
 
 ~OrdinaryProcess ()
 
void send_ctl_msg (const Message *)
 
void send_ctl_msg (TokenBuffer)
 
int get_socket_id (void(*remove_func)(int))
 
int is_connected ()
 
ControllerConnectiongetControllerConnection ()
 
- Public Member Functions inherited from covise::Process
ConnectionListgetConnectionList ()
 
 Process (const char *n, int i, sender_type st)
 
 Process (const char *n, int i, sender_type st, int port)
 
 Process (const char *n, int arc, char *arv[], sender_type st)
 
virtual ~Process ()
 
void init_env ()
 
void set_send_type (sender_type st)
 
Messagewait_for_msg ()
 
Messagecheck_queue ()
 
Messagecheck_for_msg (float time=0.0)
 
Messagewait_for_msg (int, Connection *)
 
Messagewait_for_msg (int *, int, Connection *)
 
int get_id ()
 
char * get_list_of_interfaces ()
 
const char * getName ()
 
const char * get_hostname ()
 
Hostget_covise_host ()
 
Hostget_host ()
 
void covised_rexec (Host *, char *)
 
void delete_msg (Message *m)
 
int get_hostid ()
 

Static Public Attributes

static ApplicationProcessapproc = NULL
 
- Static Public Attributes inherited from covise::Process
static Processthis_process = NULL
 

Protected Member Functions

void process_msg_from_dmgr (Message *)
 

Protected Attributes

int id
 
int instance
 
- Protected Attributes inherited from covise::OrdinaryProcess
ControllerConnectioncontroller
 
- Protected Attributes inherited from covise::Process
const char * name
 
int id
 
int hostid
 
Hosthost
 
char * covise_hostname
 
sender_type send_type
 
ConnectionListlist_of_connections
 
List< Message > * msg_queue
 
SignalHandler sig_handler
 

Private Attributes

DataManagerConnectiondatamanager
 
ShmAccessshm
 

Constructor & Destructor Documentation

ApplicationProcess::ApplicationProcess ( const char *  name,
int  id 
)
ApplicationProcess::ApplicationProcess ( const char *  n,
int  arc,
char *  arv[],
sender_type  send_type = APPLICATIONMODULE 
)
ApplicationProcess::~ApplicationProcess ( )

Member Function Documentation

Message * ApplicationProcess::check_for_ctl_msg ( float  time = 0.0)
int ApplicationProcess::check_msg_queue ( )
void ApplicationProcess::contact_controller ( int  port,
Host host 
)
virtual

Reimplemented from covise::OrdinaryProcess.

Reimplemented in covise::UserInterface.

void ApplicationProcess::contact_datamanager ( int  port)
void ApplicationProcess::exch_data_msg ( Message ,
int...   
)
int covise::ApplicationProcess::get_id ( )
inline
int covise::ApplicationProcess::get_instance ( )
inline
void * ApplicationProcess::get_shared_memory_address ( )
void ApplicationProcess::handle_shm_msg ( Message msg)
virtual

Reimplemented from covise::Process.

void ApplicationProcess::process_msg_from_dmgr ( Message msg)
protected
void ApplicationProcess::recv_data_msg ( Message msg)
void ApplicationProcess::send_data_msg ( Message msg)
Message * ApplicationProcess::wait_for_ctl_msg ( )
Message* covise::ApplicationProcess::wait_for_data_msg ( )

Member Data Documentation

ApplicationProcess * ApplicationProcess::approc = NULL
static
DataManagerConnection* covise::ApplicationProcess::datamanager
private
int covise::ApplicationProcess::id
protected
int covise::ApplicationProcess::instance
protected
ShmAccess* covise::ApplicationProcess::shm
private

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