* property return value (also FALSE); returning an int, with -1 for a failed
* allocation would possibly solve this problem.
*/
- BOOL setGraphicObjectProperty(char *_pstID, char* _pstName, void* _dblValue, int numElements);
+ BOOL setGraphicObjectProperty(char const* _pstID, int _iName, void const* _dblValue, int numElements);
/** Returns a graphic object vector property */
- void* getGraphicObjectProperty(char *_pstID, char* _pstName);
-
- /**
- * Returns a graphic object integer property
- * Implemented in order to avoid returning the address of a
- * static local variable across too many function calls (see the getProperty
- * methods of the different Data classes when integer values are returned)
- * Probably redundant with getGraphicObjectProperty
- */
- int* getGraphicObjectIntProperty(char *_pstID, char* _pstName);
+ void getGraphicObjectProperty(char const* _pstID, int _iName, void **_pvData);
/** Creates a data object */
- char* createDataObject(char* _pstID, char* _sType);
+ char const* createDataObject(char const* _pstID, int _iType);
/**
* Deletes a data object
- * To be implemented
*/
- void deleteDataObject(char* _pstID);
+ void deleteDataObject(char const* _pstID);
private :
static DataModel *m_me;