ArcGIS Procedural Runtime  3.2.10650
List of all members | Classes | Public Types | Public Member Functions
prtx::StringEnum Class Reference

#include <EncodeOptions.h>

Classes

struct  Item
 
struct  PodItem
 

Public Types

typedef std::vector< Item >::const_iterator ItemConstIter
 

Public Member Functions

void addItem (int id, const wchar_t *value, const wchar_t *description)
 
template<size_t N>
void addItems (const StringEnum &base, const int(&itemsToKeep)[N])
 
ItemConstIter beginItems () const
 
ItemConstIter endItems () const
 
const wchar_t * getCValueById (int id) const
 
int getIdByValue (const std::wstring &value) const
 
int getIdByValue (const wchar_t *value) const
 
const std::wstring & getValueById (int id) const
 
const std::wstring & operator[] (int id) const
 
void removeAllItems ()
 
bool removeItem (int id)
 
template<size_t N>
 StringEnum (const Item(&items)[N])
 
template<size_t N>
 StringEnum (const PodItem(&items)[N])
 
template<size_t N>
 StringEnum (const StringEnum &base, const int(&itemsToKeep)[N])
 

Detailed Description

Helper class to map enum items to string values.


The documentation for this class was generated from the following file: