Views Data Access Package API Reference Guide |
Views Documentation Home |
A Model class. More...
#include <ilviews/dataccess/gadgets/htmlrep.h>
Public Member Functions | |
IliXML (IlvDisplay *display, const IlvPoint &at, IlUShort thickness=IlvDefaultGadgetThickness, IlvPalette *palette=0) | |
This constructor initializes an IliXML object. More... | |
void | addErrorSink (IliErrorSink *sink) |
Adds an error sink to this table gadget. More... | |
void | exportDefinition () |
Called to export a definition. | |
virtual IlvBitmap * | getBitmap () const |
Returns the bitmap that is displayed during the design phase in Rogue Wave Views Data Access. More... | |
const char * | getDataSourceName () const |
Returns the data source name. More... | |
IliErrorReporter * | getErrorReporter () const |
Returns the error reporter that is used by the reportErrors member functions. More... | |
IliXMLExportModel * | getExportModel () const |
Returns the export model. More... | |
const char * | getExportModelName () const |
Returns the export model name. More... | |
IliXMLImportModel * | getImportModel () const |
Returns the import model. More... | |
const char * | getImportModelName () const |
Returns the import model name. More... | |
IlInt | getModelPropertyCount (IliXMLModelType type) const |
Returns the model property count. More... | |
IlInt | getModelPropertyIndex (IliXMLModelType type, const char *name) const |
Returns a model property index. More... | |
const char * | getModelPropertyName (IliXMLModelType type, IlInt index) const |
Returns a model property name. More... | |
const IliValue & | getModelPropertyValue (IliXMLModelType type, const char *name) const |
Returns a model property value. More... | |
const IliValue & | getModelPropertyValue (IliXMLModelType type, IlInt index) const |
Returns a model property value. More... | |
IliXMLStreamModel * | getStreamModel () const |
Returns the stream model. More... | |
const char * | getStreamModelName () const |
Returns the stream model name. More... | |
void | importDefinition () |
Called to import a definition. | |
void | importNotification () |
Called to import a notification. | |
IlBoolean | isAutomaticExport () const |
Returns IlTrue if the automatic exportation of notifications is enabled. More... | |
void | removeErrorSink (IliErrorSink *sink) |
Removes an error sink from this table gadget. More... | |
void | reportErrors (const IliErrorList &errorList) const |
Reports the errors that are contained in a error list. More... | |
void | setAutomaticExport (IlBoolean flag) |
Enables/Disables the automatic exportation of notifications. More... | |
void | setDataSourceName (const char *name) |
Sets data source name. More... | |
void | setErrorReporter (IliErrorReporter *reporter) |
Sets the error reporter. More... | |
void | setExportModelName (const char *name) |
Sets export model name. More... | |
void | setImportModelName (const char *name) |
Sets import model name. More... | |
void | setModelPropertyValue (IliXMLModelType type, const char *name, const IliValue &val) |
Sets a model property value. More... | |
void | setModelPropertyValue (IliXMLModelType type, IlInt index, const IliValue &val) |
Sets a model property value. More... | |
void | setStreamModelName (const char *name) |
Sets stream model name. More... | |
![]() | |
IlBoolean | hasGlobalScope () const |
Indicates the data source scope. More... | |
IlBoolean | isSystemUsage () const |
Indicates the system usage flag. More... | |
virtual void | setGlobalScope (IlBoolean global) |
Specifies whether the scope of the name of the data gem is local to the container in which it is located or globally visible. More... | |
virtual void | usedBySystem (IlBoolean usage) |
Specifies if the object is a system object. More... | |
Static Public Member Functions | |
static IlvSymbol * | NotificationExportedSymbol () |
Returns the callback name which is called when a notification is exported. More... | |
Additional Inherited Members | |
![]() | |
IliDataGem (IlvDisplay *display, const IlvPoint &at, IlUShort thickness=IlvDefaultGadgetThickness, IlvPalette *palette=0) | |
Initializes a new data gem. More... | |
A Model class.
Library: dbgadget
The class defines a gadget which manages the communication between a data source and a XML stream. It manages the import and export of notification and of definition.
A notification, is used to indicate a modification of the data source contents.
Data Access provides some models with a DTD but you can define your model class to implement your DTD. The default DTD is:
A Definition, is used to define the data source data and to change some data source column properties.
Data Access provides some models with a DTD but you can define your model class to implement your DTD. The default DTD is:
IliXML
, IliModel
, IliXMLDocumentModel
. IliXML::IliXML | ( | IlvDisplay * | display, |
const IlvPoint & | at, | ||
IlUShort | thickness = IlvDefaultGadgetThickness , |
||
IlvPalette * | palette = 0 |
||
) |
This constructor initializes an IliXML
object.
display | The display. |
at | The position. |
thickness | The border thickness. |
palette | The palette. |
void IliXML::addErrorSink | ( | IliErrorSink * | sink | ) |
Adds an error sink to this table gadget.
sink | The error sink to be added. |
|
virtual |
Returns the bitmap that is displayed during the design phase in Rogue Wave Views Data Access.
Reimplemented from IliDataGem.
const char* IliXML::getDataSourceName | ( | ) | const |
Returns the data source name.
IliErrorReporter* IliXML::getErrorReporter | ( | ) | const |
Returns the error reporter that is used by the reportErrors
member functions.
When this property is 0
a default error reporter is used. Initially this property is 0
.
IliXMLExportModel* IliXML::getExportModel | ( | ) | const |
Returns the export model.
const char* IliXML::getExportModelName | ( | ) | const |
Returns the export model name.
IliXMLImportModel* IliXML::getImportModel | ( | ) | const |
Returns the import model.
const char* IliXML::getImportModelName | ( | ) | const |
Returns the import model name.
IlInt IliXML::getModelPropertyCount | ( | IliXMLModelType | type | ) | const |
Returns the model property count.
type | The model type. |
IlInt IliXML::getModelPropertyIndex | ( | IliXMLModelType | type, |
const char * | name | ||
) | const |
Returns a model property index.
type | The model type. |
name | The property name. |
-1
. const char* IliXML::getModelPropertyName | ( | IliXMLModelType | type, |
IlInt | index | ||
) | const |
Returns a model property name.
type | The model type. |
index | The property index. |
0
. const IliValue& IliXML::getModelPropertyValue | ( | IliXMLModelType | type, |
const char * | name | ||
) | const |
Returns a model property value.
type | The model type. |
name | The property name. |
0
value. const IliValue& IliXML::getModelPropertyValue | ( | IliXMLModelType | type, |
IlInt | index | ||
) | const |
Returns a model property value.
type | The model type. |
index | The property index. |
0
value. IliXMLStreamModel* IliXML::getStreamModel | ( | ) | const |
Returns the stream model.
const char* IliXML::getStreamModelName | ( | ) | const |
Returns the stream model name.
IlBoolean IliXML::isAutomaticExport | ( | ) | const |
Returns IlTrue
if the automatic exportation of notifications is enabled.
IlTrue
if the automatic exportation of notifications is enabled.
|
static |
Returns the callback name which is called when a notification is exported.
void IliXML::removeErrorSink | ( | IliErrorSink * | sink | ) |
Removes an error sink from this table gadget.
sink | The error sink to be removed. |
void IliXML::reportErrors | ( | const IliErrorList & | errorList | ) | const |
Reports the errors that are contained in a error list.
This member function makes use of the error reporter returned by getErrorReporter
if any. Otherwise it uses a default error reporter.
errorList | The error list. |
void IliXML::setAutomaticExport | ( | IlBoolean | flag | ) |
Enables/Disables the automatic exportation of notifications.
flag | If IlTrue , the exportation is enabled. |
void IliXML::setDataSourceName | ( | const char * | name | ) |
Sets data source name.
name | The data source name. |
void IliXML::setErrorReporter | ( | IliErrorReporter * | reporter | ) |
Sets the error reporter.
Note that the table gadget will not delete the error reporter at destruction time, so the same error reporter may be safely shared by many table gadgets.
reporter | The new error reporter. |
void IliXML::setExportModelName | ( | const char * | name | ) |
Sets export model name.
name | The model name. The predefined models are:
|
void IliXML::setImportModelName | ( | const char * | name | ) |
Sets import model name.
name | The model name. The predefined models are:
|
void IliXML::setModelPropertyValue | ( | IliXMLModelType | type, |
const char * | name, | ||
const IliValue & | val | ||
) |
Sets a model property value.
type | The model type. |
name | The property name. |
val | The value. |
void IliXML::setModelPropertyValue | ( | IliXMLModelType | type, |
IlInt | index, | ||
const IliValue & | val | ||
) |
Sets a model property value.
type | The model type. |
index | The property index. |
val | The value. |
void IliXML::setStreamModelName | ( | const char * | name | ) |
Sets stream model name.
name | The model name. The predefined models are:
|