VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
enum2string.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #ifndef ENUM2STRING_H_
10 #define ENUM2STRING_H_
11 
12 #include <vlpi/disEnums.h>
13 #include <vlutil/vlHashlist.h>
14 
20 
22 {
23 public:
24 
27 
28  const char* addMapping(DtPduKind id, const char* str, int warn=0);
29  const char* string(DtPduKind id) const;
30 
31 protected:
33 };
34 
36 const DT_DLL_VL char *DtEnumString(DtPduKind kind);
37 const DT_DLL_VL char *DtAddEnumString(DtPduKind kind,
38  const char *str, int warn = 0);
39 
40 #endif
41 
Instances of this class are used to conveniently convert between pdu types and strings.
Definition: enum2string.h:21
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
const char * DtAddEnumString(DtPduKind kind, const char *str, int warn=0)
DtHashlist myMappings
Definition: enum2string.h:32
const char * DtEnumString(DtPduKind kind)
Defines DtHashlist and several helper functions.
DtHashlist is deprecated and provided for backwards compatibility only.
Definition: vlHashlist.h:69
Contains the standard DIS enumerations.
DtPduKind
([UID 4]) - PDU Type
Definition: disEnums.h:238
const DtPduKindStringMap * DtGetPduKindStringMap()

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)