| 3039 | } |
| 3040 | |
| 3041 | const char * Config::getRoleName(int index) const |
| 3042 | { |
| 3043 | if(index < 0 || index >= (int)getImpl()->m_roles.size()) return ""; |
| 3044 | StringMap::const_iterator iter = getImpl()->m_roles.begin(); |
| 3045 | for(int i = 0; i < index; ++i) ++iter; |
| 3046 | return iter->first.c_str(); |
| 3047 | } |
| 3048 | |
| 3049 | const char * Config::getRoleColorSpace(int index) const |
| 3050 | { |