12.4 ISCriteria
#include <is/criteria.h>
ISCriteria criteria( ".*" );
Objects of this class are used for subscriptions and browsing the content of the IS repository.
1: #include <Person.h>
2:
3: Person person;
4: IPCPartition p;
5: ISInfoIterator it( p, "MyServer", ISCriteria( "P.*", Person::type() ));
enum Logic { AND, OR };
-
Value of this type can be used in one of the ISCriteria constructors to define the complete criteria.
ISCriteria( );
-
Constructs the default criteria, which match to any information object in the IS repository.
ISCriteria( const std::string & reg_exp );
-
Constructs the criteria, which match to any information object, whose name match to the reg_exp regular expression.
-
The reg_exp parameter must be a regular expression as defined in POSIX 1003.2.
ISCriteria( const ISType & type );
-
Constructs the criteria, which match to any information object of the type type.
ISCriteria( const std::string & reg_exp, const ISType & type, Logic logic = AND );
-
If logic parameter is set to AND (the default value), constructs the criteria, which match to any information object, whose name match to the reg_exp regular expression, and which is of type type. If logic parameter is set to OR, constructs the criteria, which match to any information object, whose name match to the reg_exp regular expression, or which is of type type.
-
The reg_exp parameter must be a regular expression as defined in POSIX 1003.2.
2 July 1998 - WebMaster | Copyright © CERN 1998 |