Xonotic
StringSource Class Reference
+ Inheritance diagram for StringSource:
+ Collaboration diagram for StringSource:

Public Member Functions

 ATTRIB (StringSource, StringSource_str, string)
 
 ATTRIB (StringSource, StringSource_sep, string)
 
virtual void DataSource ::destroy ()
 cleanup on shutdown. More...
 
virtual void DataSource ::getEntry ()
 get entry i passing name and icon through returns if it is not null returns DataSource_false if out of bounds otherwise returns an entity or DataSource_true More...
 
virtual void DataSource ::indexOf ()
 return the index of the first match for find. More...
 
virtual void DataSource ::reload ()
 reload all entries matching filter returning how many matches were found More...
 
virtual void StringSource ::getEntry ()
 
virtual void StringSource ::reload ()
 
 StringSource ::StringSource (string str, string sep)
 

Static Public Attributes

static entity false = NULL
 
static entity true = NEW(Object)
 

Detailed Description

Definition at line 21 of file datasource.qh.

Member Function Documentation

◆ ATTRIB() [1/2]

StringSource::ATTRIB ( StringSource  ,
StringSource_str  ,
string   
)

◆ ATTRIB() [2/2]

StringSource::ATTRIB ( StringSource  ,
StringSource_sep  ,
string   
)

◆ DataSource ::destroy()

virtual void DataSource::DataSource ::destroy ( )
inlinevirtualinherited

cleanup on shutdown.

optional

Definition at line 17 of file datasource.qh.

References ENDCLASS.

17 { }

◆ DataSource ::getEntry()

virtual void DataSource::DataSource ::getEntry ( )
inlinevirtualinherited

get entry i passing name and icon through returns if it is not null returns DataSource_false if out of bounds otherwise returns an entity or DataSource_true

Definition at line 11 of file datasource.qh.

11 { return DataSource_false; }

◆ DataSource ::indexOf()

virtual void DataSource::DataSource ::indexOf ( )
inlinevirtualinherited

return the index of the first match for find.

optional

Definition at line 13 of file datasource.qh.

13 { return -1; }

◆ DataSource ::reload()

virtual void DataSource::DataSource ::reload ( )
inlinevirtualinherited

reload all entries matching filter returning how many matches were found

Definition at line 15 of file datasource.qh.

15 { return 0; }

◆ StringSource ::getEntry()

virtual void StringSource::StringSource ::getEntry ( )
virtual

◆ StringSource ::reload()

virtual void StringSource::StringSource ::reload ( )
virtual

◆ StringSource ::StringSource()

StringSource::StringSource ::StringSource ( string  str,
string  sep 
)

Member Data Documentation

◆ false

entity DataSource::false = NULL
staticinherited

Definition at line 5 of file datasource.qh.

◆ true

entity DataSource::true = NEW(Object)
staticinherited

Definition at line 4 of file datasource.qh.


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