/***************************************************************************
xqlString.h - description
-------------------
begin : Mon Jun 26 2000
copyright : (C) 2000 by Raoul Markus
email : raoul.markus@arcormail.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 main_xqlString_h
#define main_xqlString_h
#include "xqlattribute.h"
#include "xqlsession.h"
class xqlString : public xqlAttribute
{
protected:
char* theValue;
public:
xqlString(xqlSession * pThisSession ) : xqlAttribute( pThisSession ){
strncpy(mSqlType,SQL_STRING,20);
theValue = new char[XQL_STRING_MAX_LENGTH];
}
virtual char* value () const {
return theValue;
}
virtual ~xqlString(){
}
//
virtual char* value (const char* pValue) {
return strcpy(theValue, pValue);
}
virtual bool saveInstance();
virtual bool createInstance();
virtual bool loadInstance(int pInstId);
virtual char* className () const;
virtual bool isEqual (const xqlObject&) const; // test for equalness
virtual bool operator == (const xqlString&) const;
virtual bool operator != (const xqlString&) const;
const xqlString& operator= (const xqlString& i) {
xqlObject::operator=(i);
theValue = i.theValue;
return *this;
};
};
#endif
| Generated by: markus on hobbes on Fri Mar 29 16:15:24 2002, using kdoc 2.0a53. |