Changeset 1155


Ignore:
Timestamp:
10/01/21 22:41:15 (2 weeks ago)
Author:
Maciej Komosinski
Message:

Added ParamInterface::findGroupId(const char* name)

Location:
cpp/frams/param
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/param/param.cpp

    r993 r1155  
    686686}
    687687
     688int ParamInterface::findGroupId(const char* name)
     689{
     690for(int i=0;i<getGroupCount();i++)
     691        if (!strcmp(grname(i),name))
     692                return i;
     693return -1;
     694}
     695
    688696void ParamInterface::get(int i, ExtValue &ret)
    689697{
     
    926934                                err = "no procedure defined";
    927935                }
    928                 if (pe->flags & PARAM_READONLY)
    929                         err = "function can't be PARAM_READONLY";
    930936        }
    931937        else
  • cpp/frams/param/param.h

    r950 r1155  
    7878        int findId(const char *n);      ///< find id number for internal name
    7979        int findIdn(const char *naz, int n);
     80        int findGroupId(const char* name);
    8081
    8182        virtual const char *id(int i) = 0;      ///< get internal name
Note: See TracChangeset for help on using the changeset viewer.