#include "nml.hh"#include "stat_msg.hh"#include "cmd_msg.hh"#include "timer.hh"#include "inifile.h"Include dependency graph for nml_mod.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | NML_SUBORDINATE_STRUCT |
| class | NML_MODULE |
Defines | |
| #define | STATE_MATCH (set_file_and_line(__FILE__,__LINE__)),stateMatch |
| #define | NML_MOD_LOG_ERROR setLogInfo(__FILE__,__LINE__); logError |
Enumerations | |
| enum | RCS_STATE { UNINITIALIZED_STATE = -1, NEW_COMMAND = -2, NOP_STATE = -3, SE0 = -10, SE1 = -11, SE2 = -12, SE3 = -13, SE4 = -14, SE5 = -15, SE6 = -16, SE7 = -17, SE8 = -18, SE9 = -19, S0 = 0, S1 = 1, S2 = 2, S3 = 3, S4 = 4, S5 = 5, S6 = 6, S7 = 7, S8 = 8, S9 = 9, S10 = 10, S11 = 11, S12 = 12, S13 = 13, S14 = 14, S15 = 15, S16 = 16, S17 = 17, S18 = 18, S19 = 19, S20 = 20, S21 = 21, S22 = 22, S23 = 23, S24 = 24, S25 = 25, S26 = 26, S27 = 27, S28 = 28, S29 = 29, S30 = 30, S31 = 31, S32 = 32, S33 = 33, S34 = 34, S35 = 35, S36 = 36, S37 = 37, S38 = 38, S39 = 39 } |
| enum | RCS_STATUS { UNINITIALIZED_STATUS = -1, RCS_DONE = 1, RCS_EXEC = 2, RCS_ERROR = 3 } |
Functions | |
| int | logTextToNML (NML *, const char *fmt,...) |
|
|
Definition at line 50 of file nml_mod.hh. |
|
|
Definition at line 319 of file nml_mod.hh. |
|
|
Definition at line 54 of file nml_mod.hh. 00055 {
00056 UNINITIALIZED_STATE = -1,
00057 NEW_COMMAND = -2,
00058 NOP_STATE = -3,
00059 SE0 = -10,
00060 SE1 = -11,
00061 SE2 = -12,
00062 SE3 = -13,
00063 SE4 = -14,
00064 SE5 = -15,
00065 SE6 = -16,
00066 SE7 = -17,
00067 SE8 = -18,
00068 SE9 = -19,
00069 S0 = 0,
00070 S1 = 1,
00071 S2 = 2,
00072 S3 = 3,
00073 S4 = 4,
00074 S5 = 5,
00075 S6 = 6,
00076 S7 = 7,
00077 S8 = 8,
00078 S9 = 9,
00079 S10 = 10,
00080 S11 = 11,
00081 S12 = 12,
00082 S13 = 13,
00083 S14 = 14,
00084 S15 = 15,
00085 S16 = 16,
00086 S17 = 17,
00087 S18 = 18,
00088 S19 = 19,
00089 S20 = 20,
00090 S21 = 21,
00091 S22 = 22,
00092 S23 = 23,
00093 S24 = 24,
00094 S25 = 25,
00095 S26 = 26,
00096 S27 = 27,
00097 S28 = 28,
00098 S29 = 29,
00099 S30 = 30,
00100 S31 = 31,
00101 S32 = 32,
00102 S33 = 33,
00103 S34 = 34,
00104 S35 = 35,
00105 S36 = 36,
00106 S37 = 37,
00107 S38 = 38,
00108 S39 = 39
00109 };
|
|
|
Definition at line 112 of file nml_mod.hh. 00113 {
00114 UNINITIALIZED_STATUS = -1,
00115 RCS_DONE = 1,
00116 RCS_EXEC = 2,
00117 RCS_ERROR = 3
00118 };
|
|
||||||||||||||||
|
Definition at line 724 of file node/nml_mod.cc. 00725 {
00726 NML_TEXT text_msg;
00727 va_list ap;
00728
00729 // check channel for validity
00730 if (errorLog == NULL)
00731 return -1;
00732
00733 // write args to NML message
00734 va_start (ap, fmt);
00735 #ifndef UNDER_CE
00736 vsprintf (text_msg.text, fmt, ap);
00737 #else
00738 RCS_CE_VSPRINTF (text_msg.text, fmt, ap);
00739 #endif
00740 va_end (ap);
00741
00742 // rcs_print("%s\n", text_msg.text);
00743
00744 // force a NULL at the end for safety
00745 text_msg.text[NML_TEXT_LEN - 1] = 0;
00746
00747 // write it
00748 if (errorLog->write (text_msg) < 0)
00749 {
00750 return -1;
00751 }
00752
00753 return 0;
00754 }
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001