Source: xql/xqlobjectfactory.h
|
|
|
|
/***************************************************************************
xqlobjectfactory.h - description
-------------------
begin : Sun Feb 10 2002
copyright : (C) 2002 by Raoul Markus
email : raoul.markus@gmx.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef XQLOBJECTFACTORY_H
#define XQLOBJECTFACTORY_H
#include
#include
#include "xqlsession.h"
#include "xqlobject.h"
#include "xqlobjectwithattributes.h"
/**creates types and instances of obejcts
*@author Raoul Markus
*/
class xqlObjectFactory : public xqlFactory {
public:
xqlObjectFactory(xqlSession * pSession);
~xqlObjectFactory();
/** No descriptions */
xqlObject * createInstance(std::string& type);
/** creates a new type */
void createNewType(std::string& pType);
/** No descriptions */
void addAttribute(std::string& pObject, std::string& pAttribute);
/** No descriptions */
void createAttribute(std::string& pClass, std::string& pName);
/** tries to set the attribute of a given object instance (by id) and the given attributename
to a certain value. if this operation fails, it just returns false (no exception is risen) */
bool setStringValue(int pInstId, std::string & pAttribute, std::string & value);
bool setIntValue(int pInstId, std::string & pAttribute, int value);
/** No descriptions */
xqlObject * loadInstanceById(int pId);
};
#endif
Generated by: markus on hobbes on Fri Mar 29 16:15:24 2002, using kdoc 2.0a53. |