GL Studio C++ Runtime API
RSOResourceFilterImpl Class Reference

#include <gls_rso_interface_impl.h>

Inheritance diagram for RSOResourceFilterImpl:

Public Member Functions

 RSOResourceFilterImpl (GlsResourceFilter *filter)
 
int LevelsUp () const override
 
void LevelsUp (int value) override
 
int GroupLevelsDown () const override
 
void GroupLevelsDown (int value) override
 
bool NamesOnly () const override
 
void NamesOnly (bool value) override
 
void AddExclude (const char *str) override
 
int ExcludeCount () const override
 
const char * GetExclude (int index) const override
 
void AddInclude (const char *str) override
 
int IncludeCount () const override
 
const char * GetInclude (int index) const override
 
bool PassFilter (const char *name) const override
 
void PushParentName (const char *parent)
 
void PopParentName ()
 Pop the parent object name stack.
 
unsigned int ParentNameCount () const
 
const char * GetParentName (unsigned int index) const
 

Detailed Description

Wraps a GlsResourceFilter so it can be passed to the RSO Interface's GetResources call

Constructor & Destructor Documentation

◆ RSOResourceFilterImpl()

Constructor

Parameters
filterThe filter to wrap.

Member Function Documentation

◆ AddExclude()

void AddExclude ( const char *  str)
inlineoverride

Manage the list of excluded attributes. Takes precedence over includes.

Parameters
strThe new name to add to the exclude list.

◆ AddInclude()

void AddInclude ( const char *  str)
inlineoverride

Manage the list of included attributes.

Parameters
strThe new name to add to the include list.

◆ ExcludeCount()

int ExcludeCount ( ) const
inlineoverride

Default: 0

Returns
The number of entries in the exclude list.

◆ GetExclude()

const char * GetExclude ( int  index) const
inlineoverride
Note
Returns NULL if index >= ExcludeCount() or index < -1.
Returns
The exclude name associated with the incoming index.
Parameters
indexThe index of the exclusion item to return.

◆ GetInclude()

const char * GetInclude ( int  index) const
inlineoverride
Note
Returns NULL if index >= IncludeCount() or index < -1
Returns
The include name associated with the incoming index.
Parameters
indexThe index of the inclusion item to return.

◆ GetParentName()

const char * GetParentName ( unsigned int  index) const
inline
Note
Returns NULL if index >= ParentNameCount() or index < -1.
Returns
The parent name associated with the incoming index.
Parameters
indexThe index of the parent name to return.

◆ GroupLevelsDown() [1/2]

int GroupLevelsDown ( ) const
inlineoverride
Returns
The current levels of children to show.

◆ GroupLevelsDown() [2/2]

void GroupLevelsDown ( int  value)
inlineoverride

How many levels of children to show. 0 means don't show any children properties -1 means all the way down. Default: -1

Parameters
valueThe new levels of children to show.

◆ IncludeCount()

int IncludeCount ( ) const
inlineoverride

Default: 0

Returns
The number of entries in the include list.

◆ LevelsUp() [1/2]

int LevelsUp ( ) const
inlineoverride
Returns
The current qualification level.

◆ LevelsUp() [2/2]

void LevelsUp ( int  value)
inlineoverride

How many levels of qualification to show in the name. -1 means full qualification. Default: -1

Parameters
valueThe new qualification level to set.

◆ NamesOnly() [1/2]

bool NamesOnly ( ) const
inlineoverride
Returns
Whether or not names, or names and values should be returned.

◆ NamesOnly() [2/2]

void NamesOnly ( bool  value)
inlineoverride

If true, only a list of names will be returned. Values will not be returned. The format changes to not include the ":". Default: false

Parameters
valueThe new name display flag to set.

◆ ParentNameCount()

unsigned int ParentNameCount ( ) const
inline
Returns
The number of entries in the parent name stack.

◆ PassFilter()

bool PassFilter ( const char *  name) const
inlineoverride

Check a name against the filters. Exclude list takes precedence.

Parameters
nameThe name of the item to test.
Returns
Whether or not the name passes the filter (to be included in the returned results).

◆ PushParentName()

void PushParentName ( const char *  parent)
inline

Manage the stack of parent object names.

Parameters
parentThe name of the item to add to the stack.

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