#include "rcs.hh"
#include "demon.h"
Include dependency graph for demosvr.cc:
Go to the source code of this file.
Functions | |
main () | |
Variables | |
RCS_CMD_CHANNEL * | ch1_cmd = NULL |
RCS_CMD_CHANNEL * | ch2_cmd = NULL |
RCS_CMD_CHANNEL * | ch3_cmd = NULL |
RCS_STAT_CHANNEL * | ch1_stat = NULL |
RCS_STAT_CHANNEL * | ch2_stat = NULL |
RCS_STAT_CHANNEL * | ch3_stat = NULL |
NML * | nml_errlog = NULL |
|
Definition at line 17 of file demosvr.cc. 00018 { 00019 //set_rcs_print_flag(PRINT_EVERYTHING); 00020 00021 nml_errlog = new NML (nmlErrorFormat, "errlog", "demosvr", "demo.nml"); 00022 if (NULL == nml_errlog) 00023 { 00024 rcs_print_error ("Can't create nml_errlog\n"); 00025 rcs_exit (-1); 00026 } 00027 if (!nml_errlog->valid ()) 00028 { 00029 rcs_print_error ("Can't create nml_errlog\n"); 00030 rcs_exit (-1); 00031 } 00032 00033 00034 ch1_cmd = 00035 new RCS_CMD_CHANNEL (demoFormat, "ch1_cmd", "demosvr", "demo.nml"); 00036 if (NULL == ch1_cmd) 00037 { 00038 rcs_print_error ("Can't create ch1_cmd\n"); 00039 rcs_exit (-1); 00040 } 00041 if (!ch1_cmd->valid ()) 00042 { 00043 rcs_print_error ("Can't create ch1_cmd\n"); 00044 rcs_exit (-1); 00045 } 00046 00047 ch1_stat = 00048 new RCS_STAT_CHANNEL (demoFormat, "ch1_sts", "demosvr", "demo.nml"); 00049 if (NULL == ch1_stat) 00050 { 00051 rcs_print_error ("Can't create ch1_stat\n"); 00052 rcs_exit (-1); 00053 } 00054 if (!ch1_stat->valid ()) 00055 { 00056 rcs_print_error ("Can't create ch1_stat\n"); 00057 rcs_exit (-1); 00058 } 00059 00060 ch2_cmd = 00061 new RCS_CMD_CHANNEL (demoFormat, "ch2_cmd", "demosvr", "demo.nml"); 00062 if (NULL == ch2_cmd) 00063 { 00064 rcs_print_error ("Can't create ch2_cmd\n"); 00065 rcs_exit (-1); 00066 } 00067 if (!ch2_cmd->valid ()) 00068 { 00069 rcs_print_error ("Can't create ch2_cmd\n"); 00070 rcs_exit (-1); 00071 } 00072 00073 ch2_stat = 00074 new RCS_STAT_CHANNEL (demoFormat, "ch2_sts", "demosvr", "demo.nml"); 00075 if (NULL == ch2_stat) 00076 { 00077 rcs_print_error ("Can't create ch2_stat\n"); 00078 rcs_exit (-1); 00079 } 00080 if (!ch2_stat->valid ()) 00081 { 00082 rcs_print_error ("Can't create ch2_stat\n"); 00083 rcs_exit (-1); 00084 } 00085 00086 ch3_cmd = 00087 new RCS_CMD_CHANNEL (demoFormat, "ch3_cmd", "demosvr", "demo.nml"); 00088 if (NULL == ch3_cmd) 00089 { 00090 rcs_print_error ("Can't create ch3_cmd\n"); 00091 rcs_exit (-1); 00092 } 00093 if (!ch3_cmd->valid ()) 00094 { 00095 rcs_print_error ("Can't create ch3_cmd\n"); 00096 rcs_exit (-1); 00097 } 00098 00099 ch3_stat = 00100 new RCS_STAT_CHANNEL (demoFormat, "ch3_sts", "demosvr", "demo.nml"); 00101 if (NULL == ch3_stat) 00102 { 00103 rcs_print_error ("Can't create ch3_stat\n"); 00104 rcs_exit (-1); 00105 } 00106 if (!ch3_stat->valid ()) 00107 { 00108 rcs_print_error ("Can't create ch3_stat\n"); 00109 rcs_exit (-1); 00110 } 00111 00112 00113 rcs_print ("Running DemoServer . . ."); 00114 run_nml_servers (); 00115 } |
|
Definition at line 7 of file demosvr.cc. |
|
Definition at line 8 of file demosvr.cc. |
|
Definition at line 9 of file demosvr.cc. |
|
Definition at line 11 of file demosvr.cc. |
|
Definition at line 12 of file demosvr.cc. |
|
Definition at line 13 of file demosvr.cc. |
|
Definition at line 15 of file demosvr.cc. |