ArcGIS Procedural Runtime  3.1.9666
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
List of all members | Classes | Public Types | Public Member Functions | Public Attributes
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 StringEnum &base, const int(&itemsToKeep)[N])
 

Public Attributes

template<size_t N>
 __pad0__: mItems(&items[0]
 
template<size_t N>
 __pad1__: mItems(N) { init(&items[0])
 
template<size_t N>
items [N]
 

Detailed Description

Helper class to map enum items to string values.

Member Data Documentation

template<size_t N>
& prtx::StringEnum::items[N]
Initial value:
{
init(0)

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