64 lines
1.1 KiB
C++
64 lines
1.1 KiB
C++
//-------------------------------------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TRBList 类
|
|
// = Version : ver2.0
|
|
// = Author : wlw
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: TRBList 声明
|
|
// = Maintainers:
|
|
//
|
|
//-------------------------------------------------------------------------------------------------------+
|
|
#ifndef _TRBLIST_H_
|
|
#define _TRBLIST_H_
|
|
|
|
#ifndef _TGROUPS_H_
|
|
#include "TGroups.h"
|
|
#endif
|
|
|
|
class GEOAPI TRBList
|
|
{
|
|
public:
|
|
|
|
TRBList();
|
|
|
|
TRBList(int,...);
|
|
|
|
TRBList(const resbuf *rb);
|
|
|
|
TRBList (const TRBList & src);
|
|
|
|
~TRBList();
|
|
|
|
operator resbuf *();
|
|
|
|
operator void * ();
|
|
|
|
int operator !() const;
|
|
|
|
void operator = (const TRBList & src);
|
|
|
|
void Append(resbuf * lst);
|
|
|
|
void FreeGroups();
|
|
|
|
TGroups *SearchNode(int cd) const;
|
|
|
|
int GetData (int cd,void *buf) const;
|
|
|
|
int SetData(int cd,...);
|
|
|
|
public:
|
|
|
|
PGroups groups;
|
|
|
|
protected:
|
|
|
|
int _SetData(int,void *);
|
|
|
|
private:
|
|
|
|
int SizeOfType(int type)const;
|
|
};
|
|
|
|
#endif
|