Templates

 

These functions can be used when parsing script commands to replace wild cards with list of pointers.

 

Some script commands can be applied to multiple objects.  in the script you can use wild-cards to match a number of objects.  In your code, you can use these functions to replace the wild-card string with actual pointers to the objects.

 

// --- in fct_match_template.cpp ---

int          Fct_Match_Template_File(   char *t_name, int max_match, SliceO_File *List[] ) ;

int          Fct_Match_Template_Frame(  char *t_name, int max_match, SliceO_Frame *List[] ) ;

int          Fct_Match_Template_TAG(    char *t_name, int max_match, unsigned short List[] ) ;

int          Fct_Match_Template_Window( char *t_name, int max_match, SliceO_Window *List[] ) ;

int          Fct_Match_Template_Geom(   char *t_name, int max_match, SliceO_Geom *List[] ) ;

int          Fct_Match_Template_Point(  char *t_name, int max_match, SliceO_Point *List[] ) ;

int          Fct_Match_Template_Light(  char *t_name, int max_match, unsigned short List[] ) ;

int          Fct_Match_Template_Id(     char *t_name, int max_match, unsigned short List[] ) ;