1 #if !defined(_MEMORYMAPS_H_) 4 #include "MemoryManager.h" 11 #define ID_QUEUEPAGE 3 12 #define ID_COMPMAPPAGE 4 13 #define ID_TYPEMAPPAGE 5 14 #define ID_TOPICMAPPAGE 6 16 #define ID_QUEUEMAPPAGE 7 17 #define ID_PROCESSMAPPAGE 8 18 #define ID_REQUESTMAPPAGE 9 19 #define ID_CRANKMAPPAGE 10 20 #define ID_CONTEXTMAPPAGE 11 21 #define RESERVEDPAGECOUNT 12 39 char name[MAXKEYNAMELEN+1];
54 char name[MAXKEYNAMELEN+1];
69 char name[MAXKEYNAMELEN+1];
99 char name[MAXKEYNAMELEN+1];
100 char function[MAXKEYNAMELEN+1];
101 char libraryFilename[MAXKEYNAMELEN+1];
102 char script[MAXSCRIPTLEN+1];
117 char name[MAXKEYNAMELEN+1];
125 #define PROC_ACTIVE 4 140 char name[MAXKEYNAMELEN+1];
142 char commandline[MAXCOMMANDLINELEN+1];
161 char name[MAXKEYNAMELEN+1];
166 uint64 dataMessageID;
167 uint64 dataMessageEOL;
170 struct GenericMapHeader {
179 inline uint16 TypePageID(TypeMapEntry* e) {
return ID_TYPEMAPPAGE;}
180 inline uint16 TypePageID(TopicMapEntry* e) {
return ID_TOPICMAPPAGE;}
182 inline uint16 TypePageID(QueueMapEntry* e) {
return ID_QUEUEMAPPAGE;}
183 inline uint16 TypePageID(ProcessMapEntry* e) {
return ID_PROCESSMAPPAGE;}
184 inline uint16 TypePageID(RequestMapEntry* e) {
return ID_REQUESTMAPPAGE;}
185 inline uint16 TypePageID(CrankMapEntry* e) {
return ID_CRANKMAPPAGE;}
186 inline uint16 TypePageID(ContextMapEntry* e) {
return ID_CONTEXTMAPPAGE;}
188 #define REQ_CREATED 1 189 #define REQ_RECEIVED_LOCAL 2 190 #define REQ_RECEIVED_REMOTE 3 191 #define REQ_PROCESSING_LOCAL 4 192 #define REQ_PROCESSING_REMOTE 5 193 #define REQ_REPLY_READY 6 195 #define REQ_FAILED_DATA 8 196 #define REQ_FAILED_NODATA 9 197 #define REQ_FAILED_DATA_EOL 10 198 #define REQ_SUCCESS 11 199 #define REQ_SUCCESS_DATA 12 200 #define REQ_SUCCESS_NODATA 13 201 #define REQ_SUCCESS_DATA_EOL 14 208 static bool CreateNewTypeLevel(uint16
id,
const char* name, uint64 time = 0);
209 static bool GetTypeLevelName(uint16
id,
char* name, uint32 maxSize);
210 static bool GetTypeLevelID(
const char* name, uint16 &
id);
211 static bool DeleteTypeLevel(
const char* name);
212 static bool DeleteTypeLevel(uint16
id);
213 static uint64 GetTypeLevelCreateTime(uint16
id);
216 static bool CreateNewContextLevel(uint16
id,
const char* name, uint64 time = 0);
217 static bool GetContextLevelName(uint16
id,
char* name, uint32 maxSize);
218 static bool GetContextLevelID(
const char* name, uint16 &
id);
219 static bool DeleteContextLevel(
const char* name);
220 static bool DeleteContextLevel(uint16
id);
221 static uint64 GetContextLevelCreateTime(uint16
id);
224 static bool CreateNewTopic(uint8
id,
const char* name);
225 static bool GetTopicName(uint32
id,
char* name, uint32 maxSize);
226 static bool GetTopicID(
const char* name, uint32 &
id);
227 static bool DeleteTopic(
const char* name);
228 static bool DeleteTopic(uint32
id);
229 static uint64 GetTopicCreateTime(uint32
id);
243 static bool CreateNewCrank(uint16
id,
const char* name,
const char*
function,
const char* libraryFilename, uint64 time = 0);
244 static bool GetCrankName(uint16
id,
char* name, uint32 maxSize);
245 static bool GetCrankFunction(uint16
id,
char*
function, uint32 maxSize);
246 static bool GetCrankLibraryFilename(uint16
id,
char* libraryFilename, uint32 maxSize);
247 static bool GetCrankID(
const char* name, uint16 &
id);
248 static bool GetCrankScript(uint16
id,
char* script, uint32 maxSize);
249 static bool SetCrankScript(uint16
id,
const char* script);
250 static bool DeleteCrank(uint16
id);
251 static bool DeleteCrank(
const char* name);
252 static uint64 GetCrankCreateTime(uint16
id);
311 template <
typename T,
typename ID,
typename KEY>
315 static uint32 GetCount(
char* data);
316 static T* CreateEntry(
char* data, ID
id,
const char* name);
317 static T* GetEntry(
char* data, ID
id);
318 static bool DeleteEntry(
char* data, ID
id);
319 static uint64 GetEntryTime(
char* data, ID
id);
320 static const char* GetEntryName(
char* data, ID
id, uint32& size);
321 static ID GetEntryID(
char* data,
const char* name);
329 #include "MemoryMaps.tpl.h" 331 #endif // _MEMORYMAPS_H_ Definition: DataMapsMemory.h:66
Definition: MemoryMaps.h:205
Definition: DataMapsMemory.h:114
Definition: DataMapsMemory.h:295
Definition: DataMapsMemory.h:169
Definition: MemoryMaps.h:114
Definition: MemoryMaps.h:66
Definition: MemoryMaps.h:135
Definition: DataMapsMemory.h:42