D
David
Hi, Buddy,
a newbie's question for you guys,
In C++, some functions have a return value type "result", what does
this mean, I searched on web, but no hint.
thanks a lot
David
***************************************
class MyClass
{
//database's own file descriptor
int db_fd;
//database header
DbHeader *db_hdr;
//memory pointer to the current opened Data Set
St_Layer *cdlayer;
//mmeory pointer to the data file of current Data Set
St_DataFile *cdfile;
public:
char *db_name;
public:
St_Db(const char *dname, Result& res, bool is_new = 0);
virtual ~St_Db();
//===
//=== Data layer related operations
//===
int getNLayers (void);
virtual Result openLayer (const char *name, St_Layer*& layer);
virtual Result closeLayer (LID lid);
virtual Result closeLayer (const char *name);
virtual St_DataFile* getDFile(const OID& oid);
virtual St_HeapFile* getHeap (LID lid);
virtual St_Layer* getLayer(LID lid);
.........
}
a newbie's question for you guys,
In C++, some functions have a return value type "result", what does
this mean, I searched on web, but no hint.
thanks a lot
David
***************************************
class MyClass
{
//database's own file descriptor
int db_fd;
//database header
DbHeader *db_hdr;
//memory pointer to the current opened Data Set
St_Layer *cdlayer;
//mmeory pointer to the data file of current Data Set
St_DataFile *cdfile;
public:
char *db_name;
public:
St_Db(const char *dname, Result& res, bool is_new = 0);
virtual ~St_Db();
//===
//=== Data layer related operations
//===
int getNLayers (void);
virtual Result openLayer (const char *name, St_Layer*& layer);
virtual Result closeLayer (LID lid);
virtual Result closeLayer (const char *name);
virtual St_DataFile* getDFile(const OID& oid);
virtual St_HeapFile* getHeap (LID lid);
virtual St_Layer* getLayer(LID lid);
.........
}