MFC Grid manual

LongEnumFormat.h File Reference

#include <Dapfor/Common/Common.h>
#include <Dapfor/Common/Types.h>
#include <Dapfor/Common/Format.h>
#include "assert.h"
#include <vector>

Namespaces

namespace  Dapfor
namespace  Dapfor::Common

Classes

class  CLongEnumFormat
 Converts enumerated value to a text and vice versa. More...
struct  CLongEnumFormat::Item
 Represents a pair of numeric value and a corresponding formatted string. More...

Defines

#define DF_ENUM_FORMAT(__items)   new Dapfor::Common::CLongEnumFormat(__items, sizeof(__items)/sizeof(__items[0]))
 Creates a new Dapfor::Common::CLongEnumFormat with table of numeric values and corresponding strings.

Detailed Description


Define Documentation

#define DF_ENUM_FORMAT ( __items   )     new Dapfor::Common::CLongEnumFormat(__items, sizeof(__items)/sizeof(__items[0]))

Creates a new Dapfor::Common::CLongEnumFormat with table of numeric values and corresponding strings.

Parameters:
[in] __items Table, which contains pairs of numeric values and formatted strings.