ToolMap
|
Storing Fields property in memory. More...
#include <projectdefmemory.h>
Public Member Functions | |
bool | SetValues (const wxString &fieldname, const wxString &fielddef, const wxString &fieldcomment=_T("")) |
Assign values based on string. | |
bool | GetStringTypeFromValues (wxString &sResult) |
Create string type. | |
ProjectDefMemoryFields & | operator= (const ProjectDefMemoryFields &source) |
Copy Field values (and array of coded values) | |
Static Public Member Functions | |
static wxString | GetOrientationName () |
Storing Fields property in memory.
This class is used in PrjMemFieldArray, a wxArray type class for storing all fields related to a layer.
bool ProjectDefMemoryFields::GetStringTypeFromValues | ( | wxString & | sResult | ) |
Create string type.
This function create string type :
sResult | Will be modified to contain the string type who could be used for adding or modifing columns |
ProjectDefMemoryFields & ProjectDefMemoryFields::operator= | ( | const ProjectDefMemoryFields & | source | ) |
Copy Field values (and array of coded values)
bool ProjectDefMemoryFields::SetValues | ( | const wxString & | fieldname, |
const wxString & | fielddef, | ||
const wxString & | fieldcomment = _T("") |
||
) |
Assign values based on string.
This function may be used for assigning values to a ProjectDefMemoryFields object from a string (for applications see string extracted from some SQL query like 'SHOW FULL COLUMNS FROM ...'
fielddef | an Array of String containing minimum 2 items (verified internally), the first item should be the field name and the second is a string with the width of the field or the values in case of enumerations |