aliasrecord.hxx
来自「vovida的软交换」· HXX 代码 · 共 84 行
HXX
84 行
/*
* AliasRecord.hxx - 11/03/03
*
*
*/
#ifndef ALIASRECORD_HXX
#define ALIASRECORD_HXX
//#include "cpLog.h"
#include "Record.hxx"
#include "DBConnection.hxx"
#include "RecordTypes.h"
#include <ctime>
class AliasRecord : public Record
{
public:
// class constructor
AliasRecord();
// class destructor
~AliasRecord();
/*
* The following function provides an exact duplicate of the record
* in the provided memory space. The caching system requires this.
*/
virtual Record* clone(void);
/*
* populates this object from the database.
* key is the key used to retrieve information, dbcon is a connection
* to the database (provided by the DBManager)
*/
virtual bool populateRecord(KeyType key, DBConnection* dbcon);
/*
* amends this object in the database, returns true if nothing
* goes wrong
*/
virtual bool amendRecord(DBConnection* dbconn);
/*
* deletes this object from the database,
* returns true if nothing goes wrong
*/
virtual bool deleteRecord(DBConnection* dbconn);
/*
* inserts this object in the database,
* returns true if nothing goes wrong
*/
virtual bool insertRecord(DBConnection* dbconn);
/*
* This function queries the database and returns a
* list of all the relavent keys that could be used
* to retrieve records of this type
*/
virtual KeyList getAllKeys(DBConnection* dbconn);
virtual void displayRecord();
bool getE164() { return e164; };
bool isE164() { return e164; };
void setE164(bool newE164) { e164 = newE164; };
string getUsername() { return username; };
void setUsername(string newUsername) { username = newUsername; };
private:
bool e164;
string username;
// Builds the where condition used in all tables
string whereCondition();
};
#endif // TESTRECORD_HXX
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?