主题:::在这个程序里是什么意思
class EtherAppReq : public ::cPacket
{
protected:
long requestId_var;
long responseBytes_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const EtherAppReq&);
public:
EtherAppReq(const char *name=NULL, int kind=0);
EtherAppReq(const EtherAppReq& other);
virtual ~EtherAppReq();
EtherAppReq& operator=(const EtherAppReq& other);
virtual EtherAppReq *dup() const {return new EtherAppReq(*this);}
virtual void parsimPack(cCommBuffer *b);
virtual void parsimUnpack(cCommBuffer *b);
// field getter/setter methods
virtual long getRequestId() const;
virtual void setRequestId(long requestId_var);
virtual long getResponseBytes() const;
virtual void setResponseBytes(long responseBytes_var);
{
protected:
long requestId_var;
long responseBytes_var;
// protected and unimplemented operator==(), to prevent accidental usage
bool operator==(const EtherAppReq&);
public:
EtherAppReq(const char *name=NULL, int kind=0);
EtherAppReq(const EtherAppReq& other);
virtual ~EtherAppReq();
EtherAppReq& operator=(const EtherAppReq& other);
virtual EtherAppReq *dup() const {return new EtherAppReq(*this);}
virtual void parsimPack(cCommBuffer *b);
virtual void parsimUnpack(cCommBuffer *b);
// field getter/setter methods
virtual long getRequestId() const;
virtual void setRequestId(long requestId_var);
virtual long getResponseBytes() const;
virtual void setResponseBytes(long responseBytes_var);
};
这个程序开头class EtherAppReq : public ::cPacket中的::代表什么意思?
好像最近论坛帖代码有问题