PiPo
Plug In Plug Out / Plugin Interface for Processing Objects
PiPo::EnumAttr Class Reference

#include <PiPo.h>

Inheritance diagram for PiPo::EnumAttr:
PiPo::Attr PiPoArrayAttr< enum PiPo::Enumerate, SIZE > PiPoScalarAttr< enum PiPo::Enumerate > PiPoVarSizeAttr< enum PiPo::Enumerate >

Public Member Functions

 EnumAttr (PiPo *pipo, const char *name, const char *descr, const std::type_info *type, bool changesStream)
 
void addEnumItem (const char *item, const char *doc="undocumented")
 
std::vector< const char * > * getEnumList (void)
 
int getEnumIndex (const char *tag)
 
const char * getEnumTag (unsigned int idx)
 
- Public Member Functions inherited from PiPo::Attr
 Attr (PiPo *pipo, const char *name, const char *descr, const std::type_info *type, bool changesStream)
 
void setIndex (unsigned int index)
 
void setName (const char *name)
 
void setDescr (const char *descr)
 
unsigned int getIndex (void)
 
const char * getName (void)
 
const char * getDescr (void)
 
enum Type getType (void)
 
bool doesChangeStream (void)
 
virtual void clone (Attr *other)=0
 
virtual unsigned int setSize (unsigned int size)=0
 
virtual unsigned int getSize (void)=0
 
virtual void set (unsigned int i, int val, bool silently=false)=0
 
virtual void set (unsigned int i, double val, bool silently=false)=0
 
virtual void set (unsigned int i, const char *val, bool silently=false)=0
 
virtual int getInt (unsigned int i)=0
 
virtual double getDbl (unsigned int i)=0
 
virtual const char * getStr (unsigned int i)=0
 
void changed (bool silently=false)
 
void rename (const char *name)
 

Protected Member Functions

int clipEnumIndex (int index)
 

Detailed Description

PiPo enumerator attribute base class