/***************************************************************************
xqlInt.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_xqlInt_h
#define main_xqlInt_h
#include "xqlattribute.h"
#include "xqlsession.h"
class xqlInt : public xqlAttribute
{
protected:
int mValue;
public:
xqlInt(xqlSession * pThisSession ) : xqlAttribute( pThisSession ){
strncpy(mSqlType,SQL_INT,60);
}
virtual int value () const {
return mValue;
}
virtual ~xqlInt(){
}
//
virtual int value (int i) {
return mValue = i;
}
virtual bool createInstance();
virtual bool saveInstance();
virtual bool loadInstance(int pInstId);
virtual char* className () const;
virtual bool isEqual (const xqlObject&) const; // test for equalness
virtual bool operator == (const xqlInt&) const;
virtual bool operator != (const xqlInt&) const;
const xqlInt& operator= (const xqlInt& i) {
xqlObject::operator=(i);
mValue = i.mValue;
return *this;
};
};
#endif
| Generated by: markus on hobbes on Fri Mar 29 16:15:24 2002, using kdoc 2.0a53. |