Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/QNX4/MsgData.hpp

Go to the documentation of this file.
00001 #include <j2k/Fred/QNX/System.hpp>
00002 
00003 // Default Constant for Task
00004 #define MSG_DATA_TYPE        126
00005 #define MSG_KILL_THREAD      255
00006 
00007 #define MSG_FUNCTION_CALL    0x40
00008 #define MSG_TIMER_CALL       0x20
00009 #define MSG_VALID            0x01
00010 #define MSG_NOP              0x00
00011 
00012 
00013 class MsgData {
00014 private:
00015   serial_t  Serialization;   // SHOULDN'T BE MODIFIED ELSE WHERE.
00016 
00017 public:
00018   int Identification;
00019 
00020   int task;        // What task should be done
00021   int index;       // Index of the dispatching function
00022 
00023   int value[10];   // Values that are used normally
00024   char* s;         // General Memory Bytes buffer or String msg exchange
00025 
00026   int kind;        // Identifier for the void* p variable
00027   void* p;         // Non-classified general pointer to pass Class or Struct.
00028 
00029   int valid;       // Is it valid or not ?
00030 
00031   /* Note: *
00032     Add more "general" stuff, if needed, but don't put all your train stuff
00033     in it since it will decrease performance of short messages, such as
00034     those used by the Timer Class.
00035   */
00036 
00037    // Optimized Constructor
00038    MsgData( int tsk = MSG_KILL_THREAD, int idx = -1 )
00039       : Serialization(MSG_DATA_SERIAL), 
00040         task(tsk), index(idx), valid(1) { }
00041 
00042    Show() {
00043       printf("\nSerial# [%u]", Serialization );
00044       printf("\nTask[%d], Index[%d], Valid[%d]", task, index, valid );
00045       printf("\nString[%s], NullPtr[%d]", s, (p == NULL) );
00046    }
00047 
00048 };

Generated on Sun Oct 14 18:46:42 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001