#include <SADB.h>
Public Member Functions | |
SADBStringTable (void) | |
~SADBStringTable (void) | |
void | Initialize (void) |
Initialize Model. | |
void | Free (void) |
Free all allocated memory. | |
void | SetName (const char *name) |
void | GetByName (const char *name) |
void | SetDescription (const char *desc) |
void | SetBlackboard (Blackboard *board) |
void | SetDimensions (int X, int Y) |
void | SetString (int X, int Y, const char *Str) |
const char * | GetString (int X, int Y) |
char * | GetNewString (int X, int Y) |
void | LoadCSV (const char *Filename) |
Load a csv file containing strings. | |
void | GetLatestValues (void) |
Get the latest version of the table from the board. | |
void | GetLatestValue (int X, int Y) |
Public Attributes | |
SADBu8 * | Name |
Human Readable Object Name. | |
BlackboardObject | Object |
Object to store the list of indices. | |
int | nCols |
Number of Columns. | |
int | nRows |
Number of Rows. | |
Blackboard * | Board |
Blackboard. | |
Class used to store tables of strings in SADB
SADBStringTable::SADBStringTable | ( | void | ) |
Constructor, initializes object
SADBStringTable::~SADBStringTable | ( | void | ) |
Destructor, deinitializes object
void SADBStringTable::GetByName | ( | const char * | name | ) |
Get a stringtable object from the SADB server
name | Desired name |
void SADBStringTable::GetLatestValue | ( | int | X, |
int | Y | ||
) |
Get the latest value of a cell
X | Column index |
Y | Row index |
char * SADBStringTable::GetNewString | ( | int | X, |
int | Y | ||
) |
Get a string in the table
X | Column position |
Y | Row Position |
const char * SADBStringTable::GetString | ( | int | X, |
int | Y | ||
) |
Get a string in the table
X | Column position |
Y | Row Position |
void SADBStringTable::SetBlackboard | ( | Blackboard * | board | ) |
Attach the string table to a blackboard
board | Blackboard to be used |
void SADBStringTable::SetDescription | ( | const char * | desc | ) |
Passtrough function that sets the description of the underlying object
desc | Description |
void SADBStringTable::SetDimensions | ( | int | X, |
int | Y | ||
) |
Set the size fo the string table (always 2D)
X | Number of columns |
Y | Number of Rows |
void SADBStringTable::SetName | ( | const char * | name | ) |
Passtrough function that sets the name of the underlying object
name | Name of the object |
void SADBStringTable::SetString | ( | int | X, |
int | Y, | ||
const char * | Str | ||
) |
Set a string in the table
X | Column position |
Y | Row Position |
Str | String to be set |