WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Message.h
1#ifndef _WINC_MESSAGE
2#define _WINC_MESSAGE
3
4#include <WXP/File.h>
5#include <WXP/String.h>
6
7namespace WXP {
8 typedef unsigned long Messtype;
9
10 class Message {
11 Messtype level; /* Initial default message level */
12 int num; /* Specifies whether level has been set */
13 int out; /* Specifies whether level has been set */
14 int page;
15 int lines;
16 int max_lines;
17 File ofile;
18 File pfile;
19 String filename;
20
21 public:
22 int init();
23 Message( const char *str );
24 Message( );
25 ~Message( );
26 int destroy( );
27 int set( Messtype val );
28 int set( const char *str );
29 Messtype get( );
30 int getNum( );
31 int setPageLength( int val );
32 bool check( Messtype type );
33 int print( Messtype type, const char *mess, ... );
34 int hold( Messtype type, const char *mess );
35 int printProgramInfo( const char *string );
36 /*
37 message types
38 */
39 static const Messtype NONE = 0x00000000L;
40 static const Messtype PRINT = 0x0000000FL;
41 static const Messtype PRINTA = 0x00000001L;
42 static const Messtype PRINTB = 0x00000002L;
43 static const Messtype PRINTC = 0x00000004L;
44 static const Messtype PRINTD = 0x00000008L;
45 static const Messtype ERROR = 0x00000030L;
46 static const Messtype ERRORA = 0x00000010L;
47 static const Messtype ERRORB = 0x00000020L;
48 static const Messtype WARN = 0x000000C0L;
49 static const Messtype WARNC = 0x00000040L;
50 static const Messtype WARND = 0x00000080L;
51 static const Messtype MESS = 0x00000F00L;
52 static const Messtype MESSA = 0x00000100L;
53 static const Messtype MESSB = 0x00000200L;
54 static const Messtype MESSC = 0x00000400L;
55 static const Messtype MESSD = 0x00000800L;
56 static const Messtype OUT1 = 0x0000F000L;
57 static const Messtype OUT1A = 0x00001000L;
58 static const Messtype OUT1B = 0x00002000L;
59 static const Messtype OUT1C = 0x00004000L;
60 static const Messtype OUT1D = 0x00008000L;
61 static const Messtype OUT2 = 0x000F0000L;
62 static const Messtype OUT2A = 0x00010000L;
63 static const Messtype OUT2B = 0x00020000L;
64 static const Messtype OUT2C = 0x00040000L;
65 static const Messtype OUT2D = 0x00080000L;
66 static const Messtype OUT3 = 0x00F00000L;
67 static const Messtype OUT3A = 0x00100000L;
68 static const Messtype OUT3B = 0x00200000L;
69 static const Messtype OUT3C = 0x00400000L;
70 static const Messtype OUT3D = 0x00800000L;
71 static const Messtype OUT4 = 0x0F000000L;
72 static const Messtype OUT4A = 0x01000000L;
73 static const Messtype OUT4B = 0x02000000L;
74 static const Messtype OUT4C = 0x04000000L;
75 static const Messtype OUT4D = 0x08000000L;
76 static const Messtype DEBUG = 0xF0000000L;
77 static const Messtype DEBUGA = 0x10000000L;
78 static const Messtype DEBUGB = 0x20000000L;
79 static const Messtype DEBUGC = 0x40000000L;
80 static const Messtype DEBUGD = 0x80000000L;
81
82 static const Messtype MASK_NONE = 0x00000000L;
83 static const Messtype MASK_PRINT = 0x0000000FL;
84 static const Messtype MASK_ERROR = 0x0000003FL;
85 static const Messtype MASK_WARN = 0x000000FFL;
86 static const Messtype MASK_MESS = 0x00000FFFL;
87 static const Messtype MASK_OUT1 = 0x0000FFFFL;
88 static const Messtype MASK_OUT2 = 0x000FFFFFL;
89 static const Messtype MASK_OUT3 = 0x00FFFFFFL;
90 static const Messtype MASK_OUT4 = 0x0FFFFFFFL;
91 static const Messtype MASK_DEBUG = 0xFFFFFFFFL;
92 };
93}
94#endif
This class accesses files.
Definition File.h:15
This class prints text to the display based on priorities.
Definition Message.h:10
Messtype get()
Definition Message.cc:177
int hold(Messtype type, const char *mess)
Definition Message.cc:269
~Message()
Definition Message.cc:55
Message()
Definition Message.cc:39
int setPageLength(int val)
Definition Message.cc:193
int printProgramInfo(const char *string)
Definition Message.cc:288
int init()
Definition Message.cc:26
int getNum()
Definition Message.cc:185
int print(Messtype type, const char *mess,...)
Definition Message.cc:214
int set(Messtype val)
Definition Message.cc:64
bool check(Messtype type)
Definition Message.cc:203
This is a variable length string class.
Definition String.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4