VR-Link API Documentation for HLA Evolved
enum2string.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00008 
00009 #ifndef ENUM2STRING_H_
00010 #define ENUM2STRING_H_ 
00011 
00012 #include <vlpi/disEnums.h>
00013 #include <vlutil/vlHashlist.h>
00014 
00020 
00021 class DT_DLL_VL DtPduKindStringMap
00022 {
00023 public:
00024 
00025    DtPduKindStringMap();
00026    ~DtPduKindStringMap();
00027 
00028    const char* addMapping(DtPduKind id, const char* str, int warn=0);
00029    const char* string(DtPduKind id) const;
00030 
00031 protected:
00032    DtHashlist myMappings;
00033 };
00034 
00035 const DT_DLL_VL DtPduKindStringMap* DtGetPduKindStringMap();
00036 const DT_DLL_VL char *DtEnumString(DtPduKind kind);
00037 const DT_DLL_VL char *DtAddEnumString(DtPduKind kind, 
00038    const char *str, int warn = 0);
00039 
00040 #endif
00041 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)