AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
Public Member Functions | List of all members
drama::gitarg::EnumLookupClass Class Referenceabstract

Detailed Description

An interface for the lookup class template arguments to drama::gitarg::Enum.

drama::gitarg::Enum provides an interface to accept an argument which translates to one of a set of Enum values. The argument is an SDS structure and must accept strings, which gitarg::Enum can convert to the enumerated values.

The enumerated values must have integer values from 0 up. There needs to be an extra "Invalid" value, which is typically named "Invalid" but anything is allowed.

The user should implement a sub-class of this class to provide information required by gitarg::Enum.

#include "gitarg.hh"

Inheritance diagram for drama::gitarg::EnumLookupClass:
drama::git::ResetArgLookup

Public Member Functions

virtual ~EnumLookupClass ()
 Destructor.
 
virtual unsigned int GetMaxValue () const =0
 This function should return the maximum normal value of the enumerated value.
 
virtual const char ** GetStringArray () const =0
 Return a pointer to an array of enum strings equivalents.
 

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