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

#include <CoviseBase.h>

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

Public Types

enum  { MAX_PORTS = 4096 }
 
enum  { ADD_OBJ, DEL_OBJ }
 

Public Member Functions

 CoviseBase ()
 

Static Public Member Functions

static int parseMessage (char *line, char *token[], int tmax, const char *sep)
 
static void set_progress_callback (CoviseCallback *f, void *userData)
 
static void set_quit_callback (CoviseCallback *f, void *userData)
 
static void set_quit_info_callback (CoviseCallback *f, void *userData)
 
static void set_custom_callback (CoviseCallback *f, void *userData)
 
static void set_param_callback (CoviseParamCallback *f, void *userData)
 
static void remove_progress_callback ()
 
static void remove_quit_callback ()
 
static void remove_quit_info_callback ()
 
static void remove_custom_callback ()
 
static void remove_param_callback ()
 
static void set_master_switch_callback (CoviseCallback *f, void *userData)
 
static void remove_master_switch_callback ()
 
static bool is_master ()
 
static int request_param (const char *name)
 
static void enable_param (const char *name)
 
static void disable_param (const char *name)
 
static void hide_param (const char *name)
 
static void show_param (const char *name)
 
static void cancel_param (const char *name)
 
static void reopen_param (const char *name)
 
static int get_reply_passwd (const char **host, const char **user, const char **passwd)
 
static int get_reply_cli (const char **command)
 
static int get_reply_int_slider (long *min, long *max, long *val)
 
static int get_reply_float_slider (float *min, float *max, float *val)
 
static int get_reply_int_vector (int pos, long *val)
 
static int get_reply_float_vector (int pos, float *val)
 
static int get_reply_int_scalar (long *val)
 
static int get_reply_float_scalar (float *val)
 
static int get_reply_boolean (int *)
 
static int get_reply_string (const char **string)
 
static int get_reply_browser (const char **file)
 
static int get_reply_timer (long *start, long *delta, long *state)
 
static int get_reply_arrayset (const char **msg_buf)
 
static int get_reply_choice (int *selected_pos)
 
static int get_reply_choice (int pos, string *choiceLabels)
 
static int get_reply_colormapchoice (int *selected_pos)
 
static int get_reply_colormapchoice (TColormapChoice *values)
 
static int get_reply_material (string *value)
 
static int get_reply_colormap (float *min, float *max, int *len, colormap_type *type)
 
static int get_reply_colormap (int pos, float *r, float *g, float *b, float *a, float *x)
 
static int get_reply_color (float *r, float *g, float *b, float *a)
 
static int update_slider_param (const char *name, long min, long max, long val)
 
static int update_slider_param (const char *name, float min, float max, float val)
 
static int update_scalar_param (const char *name, long val)
 
static int update_scalar_param (const char *name, float val)
 
static int update_vector_param (const char *name, int num, long *list)
 
static int update_vector_param (const char *name, int num, float *list)
 
static int update_string_param (const char *name, char *string)
 
static int update_text_param (const char *name, char *text, int linenum)
 
static int update_boolean_param (const char *name, int val)
 
static int update_choice_param (const char *name, int len, const char *const *list, int pos)
 
static int update_timer_param (const char *name, long start, long delta, long state)
 
static int update_colormap_param (const char *name, float min, float max, const string &cmap)
 
static int update_material_param (const char *name, const string &value)
 
static int update_colormapchoice_param (const char *name, int num, int pos, TColormapChoice *list)
 
static int update_color_param (const char *name, float r, float g, float b, float a)
 
static int get_socket_id ()
 
static const char * get_instance ()
 
static const char * get_host ()
 
static const char * get_module ()
 
static const char * get_reply_param_name ()
 
static void sendWarning (const char *fmt,...)
 send warning messages - printf style More...
 
static void sendError (const char *fmt,...)
 send warning messages - printf style More...
 
static void sendInfo (const char *string,...)
 send warning messages - printf style More...
 
static int send_message (covise_msg_type type, const char *msg_string)
 
static int send_ui_message (const char *keyword, const char *string)
 
static int send_feedback_message (const char *keyword, const char *string)
 
static void set_feedback_info (const char *string)
 
static const char * get_feedback_info ()
 
static char get_feedback_type ()
 
static void send_quit_request ()
 
static void log_message (int line, const char *file, const char *comment)
 
static FILE * fopen (const char *file, const char *mode, char **returnPath=NULL)
 
static int open (const char *file, int mode)
 
static DIR * opendir (const char *file)
 
static void getname (char *buf, const char *file, const char *addpath=NULL)
 
static bool getnameinpath (char *buf, const char *file, const char *path)
 
static void addInteractor (coDistributedObject *obj, const char *name, const char *value)
 
static void printDesc (const char *callname)
 

Static Public Attributes

static ApplicationProcessappmod = NULL
 

Static Protected Member Functions

static void remove_socket (int sock_id)
 
static void doProgress ()
 
static void doCustom (Message *m)
 
static void doMasterSwitch ()
 
static void doSlaveSwitch ()
 
static void signal_handler (int signo, void *)
 
static void init_emergency_message (void)
 
static void callProgressCallback (void)
 
static void callQuitCallback (void)
 
static void callQuitInfoCallback (void)
 
static void callCustomCallback (void)
 
static void callMasterSwitchCallback (void)
 
static void callParamCallback (bool inMapLoading)
 

Static Protected Attributes

static int error = 0
 
static char * reply_keyword = NULL
 
static char * reply_param_name = NULL
 
static char * reply_param_type = NULL
 
static const char ** reply_buffer = NULL
 
static int no_of_reply_tokens = 0
 
static vector< stringtokenlist
 
static MessageapplMsg = NULL
 
static int socket_id = 0
 
static const char * h_name = NULL
 
static const char * m_name = NULL
 
static const char * instance = NULL
 
static Message emergency_message
 
static char * emergency_data
 
static const char * module_description = NULL
 
static bool master = false
 
static char * port_name [MAX_PORTS] = { NULL, NULL }
 
static char * port_description [MAX_PORTS]
 
static enum appl_port_type port_type [MAX_PORTS]
 
static const char * port_default [MAX_PORTS]
 
static char * port_datatype [MAX_PORTS]
 
static char * port_dependency [MAX_PORTS]
 
static int port_required [MAX_PORTS]
 
static int init_flag = 0
 
static char * feedback_info = NULL
 
static CoviseCallbackprogressCallbackFunc = NULL
 
static voidprogressUserData = 0L
 
static voidprogressCallbackData = 0L
 
static CoviseCallbackquitCallbackFunc = NULL
 
static voidquitUserData = 0L
 
static voidquitCallbackData = 0L
 
static CoviseCallbackquitInfoCallbackFunc = NULL
 
static voidquitInfoUserData = 0L
 
static voidquitInfoCallbackData = 0L
 
static CoviseCallbackcustomCallbackFunc = NULL
 
static voidcustomUserData = 0L
 
static voidcustomCallbackData = 0L
 
static CoviseCallbackmasterSwitchCallbackFunc = NULL
 
static voidmasterSwitchUserData = 0L
 
static CoviseParamCallbackparamCallbackFunc = NULL
 
static voidparamUserData = 0L
 
static voidparamCallbackData = 0L
 

Member Enumeration Documentation

anonymous enum
Enumerator
MAX_PORTS 
anonymous enum
Enumerator
ADD_OBJ 
DEL_OBJ 

Constructor & Destructor Documentation

CoviseBase::CoviseBase ( )

Member Function Documentation

static void covise::CoviseBase::addInteractor ( coDistributedObject obj,
const char *  name,
const char *  value 
)
static
void CoviseBase::callCustomCallback ( void  )
staticprotected
void CoviseBase::callMasterSwitchCallback ( void  )
staticprotected
void CoviseBase::callParamCallback ( bool  inMapLoading)
staticprotected
void CoviseBase::callProgressCallback ( void  )
staticprotected
void CoviseBase::callQuitCallback ( void  )
staticprotected
void CoviseBase::callQuitInfoCallback ( void  )
staticprotected
static void covise::CoviseBase::cancel_param ( const char *  name)
static
void CoviseBase::disable_param ( const char *  name)
static
void CoviseBase::doCustom ( Message m)
staticprotected
void CoviseBase::doMasterSwitch ( )
staticprotected
void CoviseBase::doProgress ( )
staticprotected
void CoviseBase::doSlaveSwitch ( )
staticprotected
void CoviseBase::enable_param ( const char *  name)
static
FILE * CoviseBase::fopen ( const char *  file,
const char *  mode,
char **  returnPath = NULL 
)
static
const char * CoviseBase::get_feedback_info ( )
static
char CoviseBase::get_feedback_type ( )
static
static const char* covise::CoviseBase::get_host ( )
inlinestatic
static const char* covise::CoviseBase::get_instance ( )
inlinestatic
static const char* covise::CoviseBase::get_module ( )
inlinestatic
int CoviseBase::get_reply_arrayset ( const char **  msg_buf)
static
int CoviseBase::get_reply_boolean ( int *  val)
static
int CoviseBase::get_reply_browser ( const char **  file)
static
int CoviseBase::get_reply_choice ( int *  selected_pos)
static
int CoviseBase::get_reply_choice ( int  pos,
string choiceLabels 
)
static
int CoviseBase::get_reply_cli ( const char **  command)
static
int CoviseBase::get_reply_color ( float *  r,
float *  g,
float *  b,
float *  a 
)
static
int CoviseBase::get_reply_colormap ( float *  min,
float *  max,
int *  len,
colormap_type type 
)
static
int CoviseBase::get_reply_colormap ( int  pos,
float *  r,
float *  g,
float *  b,
float *  a,
float *  x 
)
static
int CoviseBase::get_reply_colormapchoice ( int *  selected_pos)
static
int CoviseBase::get_reply_colormapchoice ( TColormapChoice values)
static
int CoviseBase::get_reply_float_scalar ( float *  val)
static
int CoviseBase::get_reply_float_slider ( float *  min,
float *  max,
float *  val 
)
static
int CoviseBase::get_reply_float_vector ( int  pos,
float *  val 
)
static
int CoviseBase::get_reply_int_scalar ( long *  val)
static
int CoviseBase::get_reply_int_slider ( long *  min,
long *  max,
long *  val 
)
static
int CoviseBase::get_reply_int_vector ( int  pos,
long *  val 
)
static
int CoviseBase::get_reply_material ( string value)
static
static const char* covise::CoviseBase::get_reply_param_name ( )
inlinestatic
int CoviseBase::get_reply_passwd ( const char **  host,
const char **  user,
const char **  passwd 
)
static
int CoviseBase::get_reply_string ( const char **  string)
static
int CoviseBase::get_reply_timer ( long *  start,
long *  delta,
long *  state 
)
static
int CoviseBase::get_socket_id ( )
static
void CoviseBase::getname ( char *  buf,
const char *  file,
const char *  addpath = NULL 
)
static
bool CoviseBase::getnameinpath ( char *  buf,
const char *  file,
const char *  path 
)
static
void CoviseBase::hide_param ( const char *  name)
static
void CoviseBase::init_emergency_message ( void  )
staticprotected
static bool covise::CoviseBase::is_master ( )
inlinestatic
void CoviseBase::log_message ( int  line,
const char *  file,
const char *  comment 
)
static
int CoviseBase::open ( const char *  file,
int  mode 
)
static
DIR * CoviseBase::opendir ( const char *  file)
static
int CoviseBase::parseMessage ( char *  line,
char *  token[],
int  tmax,
const char *  sep 
)
static
void CoviseBase::printDesc ( const char *  callname)
static
void CoviseBase::remove_custom_callback ( void  )
static
void CoviseBase::remove_master_switch_callback ( void  )
static
void CoviseBase::remove_param_callback ( void  )
static
void CoviseBase::remove_progress_callback ( void  )
static
void CoviseBase::remove_quit_callback ( void  )
static
void CoviseBase::remove_quit_info_callback ( void  )
static
void CoviseBase::remove_socket ( int  sock_id)
staticprotected
static void covise::CoviseBase::reopen_param ( const char *  name)
static
int CoviseBase::request_param ( const char *  name)
static
int CoviseBase::send_feedback_message ( const char *  keyword,
const char *  string 
)
static
int CoviseBase::send_message ( covise_msg_type  type,
const char *  msg_string 
)
static
void CoviseBase::send_quit_request ( )
static
int CoviseBase::send_ui_message ( const char *  keyword,
const char *  string 
)
static
void CoviseBase::sendError ( const char *  fmt,
  ... 
)
static

send warning messages - printf style

void CoviseBase::sendInfo ( const char *  string,
  ... 
)
static

send warning messages - printf style

void CoviseBase::sendWarning ( const char *  fmt,
  ... 
)
static

send warning messages - printf style

void CoviseBase::set_custom_callback ( CoviseCallback f,
void userData 
)
static
void CoviseBase::set_feedback_info ( const char *  string)
static
void CoviseBase::set_master_switch_callback ( CoviseCallback f,
void userData 
)
static
void CoviseBase::set_param_callback ( CoviseParamCallback f,
void userData 
)
static
void CoviseBase::set_progress_callback ( CoviseCallback f,
void userData 
)
static
void CoviseBase::set_quit_callback ( CoviseCallback f,
void userData 
)
static
void CoviseBase::set_quit_info_callback ( CoviseCallback f,
void userData 
)
static
void CoviseBase::show_param ( const char *  name)
static
void CoviseBase::signal_handler ( int  signo,
void  
)
staticprotected
int CoviseBase::update_boolean_param ( const char *  name,
int  val 
)
static
int CoviseBase::update_choice_param ( const char *  name,
int  len,
const char *const *  list,
int  pos 
)
static
int CoviseBase::update_color_param ( const char *  name,
float  r,
float  g,
float  b,
float  a 
)
static
int CoviseBase::update_colormap_param ( const char *  name,
float  min,
float  max,
const string cmap 
)
static
int CoviseBase::update_colormapchoice_param ( const char *  name,
int  num,
int  pos,
TColormapChoice list 
)
static
int CoviseBase::update_material_param ( const char *  name,
const string value 
)
static
int CoviseBase::update_scalar_param ( const char *  name,
long  val 
)
static
int CoviseBase::update_scalar_param ( const char *  name,
float  val 
)
static
int CoviseBase::update_slider_param ( const char *  name,
long  min,
long  max,
long  val 
)
static
int CoviseBase::update_slider_param ( const char *  name,
float  min,
float  max,
float  val 
)
static
int CoviseBase::update_string_param ( const char *  name,
char *  string 
)
static
int CoviseBase::update_text_param ( const char *  name,
char *  text,
int  linenum 
)
static
int CoviseBase::update_timer_param ( const char *  name,
long  start,
long  delta,
long  state 
)
static
int CoviseBase::update_vector_param ( const char *  name,
int  num,
long *  list 
)
static
int CoviseBase::update_vector_param ( const char *  name,
int  num,
float *  list 
)
static

Member Data Documentation

Message * CoviseBase::applMsg = NULL
staticprotected
ApplicationProcess * CoviseBase::appmod = NULL
static
void * CoviseBase::customCallbackData = 0L
staticprotected
CoviseCallback * CoviseBase::customCallbackFunc = NULL
staticprotected
void * CoviseBase::customUserData = 0L
staticprotected
char * CoviseBase::emergency_data
staticprotected
Message CoviseBase::emergency_message
staticprotected
int CoviseBase::error = 0
staticprotected
char * CoviseBase::feedback_info = NULL
staticprotected
const char * CoviseBase::h_name = NULL
staticprotected
int CoviseBase::init_flag = 0
staticprotected
const char * CoviseBase::instance = NULL
staticprotected
const char * CoviseBase::m_name = NULL
staticprotected
bool CoviseBase::master = false
staticprotected
CoviseCallback * CoviseBase::masterSwitchCallbackFunc = NULL
staticprotected
void * CoviseBase::masterSwitchUserData = 0L
staticprotected
const char * CoviseBase::module_description = NULL
staticprotected
int CoviseBase::no_of_reply_tokens = 0
staticprotected
void * CoviseBase::paramCallbackData = 0L
staticprotected
CoviseParamCallback * CoviseBase::paramCallbackFunc = NULL
staticprotected
void * CoviseBase::paramUserData = 0L
staticprotected
char * CoviseBase::port_datatype
staticprotected
const char * CoviseBase::port_default
staticprotected
char * CoviseBase::port_dependency
staticprotected
char * CoviseBase::port_description
staticprotected
char * CoviseBase::port_name = { NULL, NULL }
staticprotected
int CoviseBase::port_required
staticprotected
enum appl_port_type covise::CoviseBase::port_type[MAX_PORTS]
staticprotected
void * CoviseBase::progressCallbackData = 0L
staticprotected
CoviseCallback * CoviseBase::progressCallbackFunc = NULL
staticprotected
void * CoviseBase::progressUserData = 0L
staticprotected
void * CoviseBase::quitCallbackData = 0L
staticprotected
CoviseCallback * CoviseBase::quitCallbackFunc = NULL
staticprotected
void * CoviseBase::quitInfoCallbackData = 0L
staticprotected
CoviseCallback * CoviseBase::quitInfoCallbackFunc = NULL
staticprotected
void * CoviseBase::quitInfoUserData = 0L
staticprotected
void * CoviseBase::quitUserData = 0L
staticprotected
const char ** CoviseBase::reply_buffer = NULL
staticprotected
char * CoviseBase::reply_keyword = NULL
staticprotected
char * CoviseBase::reply_param_name = NULL
staticprotected
char * CoviseBase::reply_param_type = NULL
staticprotected
int CoviseBase::socket_id = 0
staticprotected
vector< string > CoviseBase::tokenlist
staticprotected

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