Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
DataSource Class Reference
Inheritance diagram for DataSource:
Collaboration diagram for DataSource:

Public Member Functions

virtual void destroy ()
 cleanup on shutdown.
virtual void 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
virtual void indexOf ()
 return the index of the first match for find.
virtual void reload ()
 reload all entries matching filter returning how many matches were found

Static Public Attributes

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

Detailed Description

Definition at line 3 of file datasource.qh.

Member Function Documentation

◆ destroy()

virtual void DataSource::destroy ( )
inlinevirtual

cleanup on shutdown.

optional

Definition at line 17 of file datasource.qh.

17{ }

References destroy(), and entity().

Referenced by destroy().

◆ getEntry()

virtual void DataSource::getEntry ( )
inlinevirtual

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

Reimplemented in CvarStringSource, SettingSource, StringSource, and TopicSource.

Definition at line 11 of file datasource.qh.

11{ return DataSource_false; }

References entity(), getEntry(), METHOD, name, and this.

Referenced by getEntry(), and XonoticGameSettingsTab::topicChangeNotify().

◆ indexOf()

virtual void DataSource::indexOf ( )
inlinevirtual

return the index of the first match for find.

optional

Definition at line 13 of file datasource.qh.

13{ return -1; }

References entity(), find(), and indexOf().

Referenced by indexOf().

◆ reload()

virtual void DataSource::reload ( )
inlinevirtual

reload all entries matching filter returning how many matches were found

Reimplemented in CvarStringSource, SettingSource, StringSource, and TopicSource.

Definition at line 15 of file datasource.qh.

15{ return 0; }

References entity(), and reload().

Referenced by reload().

Member Data Documentation

◆ false

entity DataSource::false = NULL
static

Definition at line 5 of file datasource.qh.

◆ true

entity DataSource::true = NEW(Object)
static

Definition at line 4 of file datasource.qh.


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