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

#include <covise_msg.h>

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

Public Member Functions

 CtlMessage (Message *m)
 
 ~CtlMessage ()
 
void get_header (char **m, char **h, char **inst)
 
int get_scalar_param (const char *, long *)
 
int get_scalar_param (const char *, float *)
 
int get_vector_param (const char *, int, long *)
 
int get_vector_param (const char *, int, float *)
 
int get_string_param (const char *, char **)
 
int get_text_param (const char *, char ***, int *line_num)
 
int get_boolean_param (const char *, int *)
 
int get_slider_param (const char *, long *min, long *max, long *value)
 
int get_slider_param (const char *, float *min, float *max, float *value)
 
int get_browser_param (const char *, char **)
 
int get_timer_param (const char *, long *start, long *delta, long *state)
 
int get_passwd_param (const char *, char **host, char **user, char **passwd)
 
int get_choice_param (const char *, int *)
 
int get_choice_param (const char *, char **)
 
int get_material_param (const char *, char **)
 
int get_colormapchoice_param (const char *, int *)
 
int get_colormapchoice_param (const char *, char **)
 
int get_colormap_param (const char *, float *min, float *max, int *len, colormap_type *type)
 
int get_color_param (const char *, float *r, float *g, float *b, float *a)
 
int set_scalar_param (const char *, long)
 
int set_scalar_param (const char *, float)
 
int set_vector_param (const char *, int num, long *)
 
int set_vector_param (const char *, int num, float *)
 
int set_string_param (const char *, char *)
 
int set_text_param (const char *, char *, int)
 
int set_boolean_param (const char *, int)
 
int set_slider_param (const char *, long min, long max, long value)
 
int set_slider_param (const char *, float min, float max, float value)
 
int set_choice_param (const char *, int, char **, int)
 
int set_browser_param (const char *, char *, char *)
 
int set_timer_param (const char *, long start, long delta, long state)
 
int set_passwd_param (const char *, char *host, char *user, char *passwd)
 
char * get_object_name (const char *name)
 
char * getObjectType (const char *name)
 
int set_save_object (const char *name)
 
int set_release_object (const char *name)
 
int create_finpart_message ()
 
int create_finall_message ()
 
int is_port_connected (const char *name)
 
- Public Member Functions inherited from covise::Message
 Message ()
 
 Message (TokenBuffer *)
 
 Message (TokenBuffer &)
 
 Message (Connection *c)
 
 send_type (Message::UNDEFINED)
 
 type (message_type)
 
 length (0)
 
 data (NULL)
 
 conn (NULL)
 
 mustDelete (true)
 
 Message (int message_type, const char *d, int cp)
 
 Message (int message_type, int l, char *d, int cp=MSG_COPY)
 
 Message (const Message &)
 
 ~Message ()
 
Messageoperator= (const Message &)
 
void delete_data ()
 
char * extract_data ()
 
void print ()
 

Private Member Functions

void init_list ()
 

Private Attributes

char * m_name
 
char * h_name
 
char * inst_no
 
int no_of_objects
 
int no_of_save_objects
 
int no_of_release_objects
 
int no_of_params_in
 
int no_of_params_out
 
int MAX_OUT_PAR
 
char ** port_names
 
char ** object_names
 
char ** object_types
 
int * port_connected
 
char ** save_names
 
char ** release_names
 
Param ** params_in
 
Param ** params_out
 

Additional Inherited Members

- Public Types inherited from covise::Message
enum  Type {
  EMPTY = -1, HOSTID = 81, SOCKET_CLOSED = 84, CLOSE_SOCKET = 31,
  STDINOUT_EMPTY = 54, UI = 6, RENDER = 45
}
 
enum  SenderType { UNDEFINED = 0, STDINOUT = 9 }
 
- Public Attributes inherited from covise::Message
int sender
 
int send_type
 
int type
 
int length
 
char * data
 
Connectionconn
 
 __pad0__: sender(-1)
 

Constructor & Destructor Documentation

covise::CtlMessage::CtlMessage ( Message m)
inline
CtlMessage::~CtlMessage ( )

Member Function Documentation

int CtlMessage::create_finall_message ( )
int CtlMessage::create_finpart_message ( )
int CtlMessage::get_boolean_param ( const char *  param_name,
int *  value 
)
int CtlMessage::get_browser_param ( const char *  param_name,
char **  file 
)
int CtlMessage::get_choice_param ( const char *  param_name,
int *  sel 
)
int CtlMessage::get_choice_param ( const char *  param_name,
char **  string 
)
int CtlMessage::get_color_param ( const char *  param_name,
float *  r,
float *  g,
float *  b,
float *  a 
)
int CtlMessage::get_colormap_param ( const char *  param_name,
float *  min,
float *  max,
int *  len,
colormap_type type 
)
int CtlMessage::get_colormapchoice_param ( const char *  param_name,
int *  sel 
)
int CtlMessage::get_colormapchoice_param ( const char *  param_name,
char **  string 
)
void covise::CtlMessage::get_header ( char **  m,
char **  h,
char **  inst 
)
inline
int CtlMessage::get_material_param ( const char *  param_name,
char **  string 
)
char * CtlMessage::get_object_name ( const char *  name)
int CtlMessage::get_passwd_param ( const char *  param_name,
char **  host,
char **  user,
char **  passwd 
)
int CtlMessage::get_scalar_param ( const char *  param_name,
long *  value 
)
int CtlMessage::get_scalar_param ( const char *  param_name,
float *  value 
)
int CtlMessage::get_slider_param ( const char *  param_name,
long *  min,
long *  max,
long *  value 
)
int CtlMessage::get_slider_param ( const char *  param_name,
float *  min,
float *  max,
float *  value 
)
int CtlMessage::get_string_param ( const char *  param_name,
char **  string 
)
int CtlMessage::get_text_param ( const char *  param_name,
char ***  text,
int *  line_num 
)
int CtlMessage::get_timer_param ( const char *  param_name,
long *  start,
long *  delta,
long *  state 
)
int CtlMessage::get_vector_param ( const char *  param_name,
int  pos,
long *  list 
)
int CtlMessage::get_vector_param ( const char *  param_name,
int  pos,
float *  list 
)
char * CtlMessage::getObjectType ( const char *  name)
void CtlMessage::init_list ( )
private
int CtlMessage::is_port_connected ( const char *  name)
int CtlMessage::set_boolean_param ( const char *  pname,
int  val 
)
int CtlMessage::set_browser_param ( const char *  pname,
char *  file,
char *   
)
int CtlMessage::set_choice_param ( const char *  pname,
int  len,
char **  list,
int  pos 
)
int CtlMessage::set_passwd_param ( const char *  pname,
char *  host,
char *  user,
char *  passwd 
)
int CtlMessage::set_release_object ( const char *  name)
int CtlMessage::set_save_object ( const char *  name)
int CtlMessage::set_scalar_param ( const char *  pname,
long  val 
)
int CtlMessage::set_scalar_param ( const char *  pname,
float  val 
)
int CtlMessage::set_slider_param ( const char *  pname,
long  min,
long  max,
long  value 
)
int CtlMessage::set_slider_param ( const char *  pname,
float  min,
float  max,
float  value 
)
int CtlMessage::set_string_param ( const char *  pname,
char *  val 
)
int CtlMessage::set_text_param ( const char *  pname,
char *  text,
int  linenum 
)
int CtlMessage::set_timer_param ( const char *  pname,
long  start,
long  delta,
long  state 
)
int CtlMessage::set_vector_param ( const char *  pname,
int  num,
long *  val 
)
int CtlMessage::set_vector_param ( const char *  pname,
int  num,
float *  val 
)

Member Data Documentation

char* covise::CtlMessage::h_name
private
char* covise::CtlMessage::inst_no
private
char* covise::CtlMessage::m_name
private
int covise::CtlMessage::MAX_OUT_PAR
private
int covise::CtlMessage::no_of_objects
private
int covise::CtlMessage::no_of_params_in
private
int covise::CtlMessage::no_of_params_out
private
int covise::CtlMessage::no_of_release_objects
private
int covise::CtlMessage::no_of_save_objects
private
char** covise::CtlMessage::object_names
private
char** covise::CtlMessage::object_types
private
Param** covise::CtlMessage::params_in
private
Param** covise::CtlMessage::params_out
private
int* covise::CtlMessage::port_connected
private
char** covise::CtlMessage::port_names
private
char** covise::CtlMessage::release_names
private
char** covise::CtlMessage::save_names
private

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