Public Member Functions | Public Attributes

gmSelector Class Reference

Class representing a collection of nodes/ports selected using differemt categories:

More...

#include <gridmd.h>

List of all members.

Public Member Functions

 gmSelector (const string &str_, int dup_sel_=gmSEL_NEAREST)
 Construct from a string, dup_sel indicates how to treat duplicated names (see gmNAME_SORT).
 gmSelector (const char *str_, int dup_sel_=gmSEL_NEAREST)
 Construct from a char *, same as above.
 gmSelector (gmNodeID id_)
 Construct from integer flag, string is empty then.
void init (const string &str_, int dup_sel_=gmSEL_NEAREST)
 (Re-)initialize from a string

Public Attributes

string str
 String representation of a selector (regular expression to select by name).
gmNodeID id
 Integer representation.
int dup_sel
 Flag indicating how to handle duplicated node names.

Detailed Description

Class representing a collection of nodes/ports selected using differemt categories:


NB: port selection is not implemented yet. The ports for gmManager::mark_node() function are selected explicitly by indicating portid (the same for all selectted nodes) or automatically (when portid is -1).


Constructor & Destructor Documentation

gmSelector::gmSelector ( const string &  str_,
int  dup_sel_ = gmSEL_NEAREST 
) [inline]

Construct from a string, dup_sel indicates how to treat duplicated names (see gmNAME_SORT).

The string is a standard regular expression to math the node names. For details on regular expressions see wxWidgets manual. For example, for selecting nodes with names starting from 'A' and 'B' the expression "(A.*|B.*)" may be used. If there are nodes with the same names and the flag gmSEL_NEAREST is given, then only the node closest to the curren node in id will be selected among duplicates. Otherwise all duplicates are listed.


Member Data Documentation

String representation of a selector (regular expression to select by name).

When the string is void, uses integer representation.


The documentation for this class was generated from the following file: