Logo Search packages:      
Sourcecode: freecad version File versions  Download package

void PropertyEnumeration::setEnums ( const char **  plEnums  ) 

Enumeration methods.

setting the enumaration string list The list is a NULL terminated array of pointers to a const char* string

 const char enums[] = {"Black","White","Other",NULL}

Definition at line 274 of file PropertyStandard.cpp.

    _EnumArray = plEnums;
# ifdef FC_DEBUG
    if (_EnumArray) {
        // check for NULL termination
        const char* p = *_EnumArray;
        unsigned int i=0;
        while(*(p++) != NULL)i++;
            // very unlikely to have enums with more then 5000 entries!
# endif

Generated by  Doxygen 1.6.0   Back to index