#include <datautils/stringtable.h>
Public Member Functions | |
wxStringTable () | |
void | AddString (const wxString &name, const wxString &value=wxEmptyString) |
Add a string. | |
void | RemoveString (const wxString &name) |
Remove a string. | |
void | RemoveString (int idx) |
size_t | GetCount () const |
Get string count. | |
void | Clear () |
Clear the table. | |
void | ClearValues () |
Just clear the values. | |
int | FindString (const wxString &name) const |
Find a string index. | |
wxString | GetString (const wxString &name) const |
Get the string for the given string, or the value of name if not found or empty. | |
wxString | GetString (size_t i) const |
Get the string at the given index. | |
wxString * | GetStringPtr (size_t i) const |
Get the string pointer at the given index. | |
wxString | GetStringRaw (size_t i) const |
Get the string at the given index, without substituting the name for an empty string. | |
wxString | GetName (size_t i) const |
Get the name at the given index. | |
void | SetName (size_t i, const wxString &name) |
Set the name at the given index. | |
void | SetString (size_t i, const wxString &value) |
Set the value at the given index. | |
void | SetString (const wxString &name, const wxString &value) |
Set the value for the given name, adding if not found. | |
const wxString & | GetTableName () const |
Get the table name. | |
void | SetTableName (const wxString &name) |
Set the table name. | |
bool | LoadFile (const wxString &filename) |
Load from file. | |
bool | SaveFile (const wxString &filename) |
Save to file. | |
Protected Attributes | |
wxArrayString | m_stringNames |
wxArrayString | m_stringValues |
wxString | m_tableName |
wxStringTable::wxStringTable | ( | ) | [inline] |
void wxStringTable::AddString | ( | const wxString & | name, | |
const wxString & | value = wxEmptyString | |||
) |
Add a string.
void wxStringTable::Clear | ( | ) | [inline] |
Clear the table.
void wxStringTable::ClearValues | ( | ) |
Just clear the values.
int wxStringTable::FindString | ( | const wxString & | name | ) | const |
Find a string index.
size_t wxStringTable::GetCount | ( | ) | const [inline] |
Get string count.
wxString wxStringTable::GetName | ( | size_t | i | ) | const |
Get the name at the given index.
wxString wxStringTable::GetString | ( | size_t | i | ) | const |
Get the string at the given index.
wxString wxStringTable::GetString | ( | const wxString & | name | ) | const |
Get the string for the given string, or the value of name if not found or empty.
wxString * wxStringTable::GetStringPtr | ( | size_t | i | ) | const |
Get the string pointer at the given index.
wxString wxStringTable::GetStringRaw | ( | size_t | i | ) | const |
Get the string at the given index, without substituting the name for an empty string.
const wxString& wxStringTable::GetTableName | ( | ) | const [inline] |
Get the table name.
bool wxStringTable::LoadFile | ( | const wxString & | filename | ) |
Load from file.
void wxStringTable::RemoveString | ( | int | idx | ) |
void wxStringTable::RemoveString | ( | const wxString & | name | ) |
Remove a string.
bool wxStringTable::SaveFile | ( | const wxString & | filename | ) |
Save to file.
void wxStringTable::SetName | ( | size_t | i, | |
const wxString & | name | |||
) |
Set the name at the given index.
void wxStringTable::SetString | ( | const wxString & | name, | |
const wxString & | value | |||
) |
Set the value for the given name, adding if not found.
void wxStringTable::SetString | ( | size_t | i, | |
const wxString & | value | |||
) |
Set the value at the given index.
void wxStringTable::SetTableName | ( | const wxString & | name | ) | [inline] |
Set the table name.
wxArrayString wxStringTable::m_stringNames [protected] |
wxArrayString wxStringTable::m_stringValues [protected] |
wxString wxStringTable::m_tableName [protected] |