OverSim
DHTGetResponse Class Reference

Class generated from applications/dht/DHTMessage.msg by opp_msgc. More...

#include <DHTMessage_m.h>

Inheritance diagram for DHTGetResponse:
BaseResponseMessage BaseRpcMessage BaseOverlayMessage OverSimMessage OverSimMessage_Base CBRDHTGetResponse

Public Member Functions

 DHTGetResponse (const char *name=NULL, int kind=0)
 DHTGetResponse (const DHTGetResponse &other)
virtual ~DHTGetResponse ()
DHTGetResponseoperator= (const DHTGetResponse &other)
virtual DHTGetResponsedup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
virtual OverlayKeygetKey ()
virtual const OverlayKeygetKey () const
virtual void setKey (const OverlayKey &key)
virtual BinaryValuegetHashValue ()
virtual const BinaryValuegetHashValue () const
virtual void setHashValue (const BinaryValue &hashValue)
virtual bool getIsHash () const
virtual void setIsHash (bool isHash)
virtual void setResultArraySize (unsigned int size)
virtual unsigned int getResultArraySize () const
virtual DhtDumpEntrygetResult (unsigned int k)
virtual const DhtDumpEntrygetResult (unsigned int k) const
virtual void setResult (unsigned int k, const DhtDumpEntry &result)
- Public Member Functions inherited from BaseResponseMessage
 BaseResponseMessage (const char *name=NULL, int kind=0)
 BaseResponseMessage (const BaseResponseMessage &other)
virtual ~BaseResponseMessage ()
BaseResponseMessageoperator= (const BaseResponseMessage &other)
virtual int getCallHopCount () const
virtual void setCallHopCount (int callHopCount)
virtual void setNcsInfoArraySize (unsigned int size)
virtual unsigned int getNcsInfoArraySize () const
virtual double getNcsInfo (unsigned int k) const
virtual void setNcsInfo (unsigned int k, double ncsInfo)
- Public Member Functions inherited from BaseRpcMessage
 BaseRpcMessage (const char *name=NULL, int kind=0)
 BaseRpcMessage (const BaseRpcMessage &other)
virtual ~BaseRpcMessage ()
BaseRpcMessageoperator= (const BaseRpcMessage &other)
virtual unsigned int getNonce () const
virtual void setNonce (unsigned int nonce)
virtual NodeHandlegetSrcNode ()
virtual const NodeHandlegetSrcNode () const
virtual void setSrcNode (const NodeHandle &srcNode)
virtual void setAuthBlockArraySize (uint8_t size)
virtual uint8_t getAuthBlockArraySize () const
virtual AuthBlockgetAuthBlock (uint8_t k)
virtual const AuthBlockgetAuthBlock (uint8_t k) const
virtual void setAuthBlock (uint8_t k, const AuthBlock &authBlock)
- Public Member Functions inherited from BaseOverlayMessage
 BaseOverlayMessage (const char *name=NULL, int kind=0)
 BaseOverlayMessage (const BaseOverlayMessage &other)
virtual ~BaseOverlayMessage ()
BaseOverlayMessageoperator= (const BaseOverlayMessage &other)
virtual int getType () const
virtual void setType (int type)
virtual int getStatType () const
virtual void setStatType (int statType)
- Public Member Functions inherited from OverSimMessage
 OverSimMessage (const char *name=NULL, int kind=0)
 OverSimMessage (const OverSimMessage &other)
OverSimMessageoperator= (const OverSimMessage &other)
- Public Member Functions inherited from OverSimMessage_Base
virtual ~OverSimMessage_Base ()

Protected Member Functions

bool operator== (const DHTGetResponse &)
- Protected Member Functions inherited from BaseResponseMessage
bool operator== (const BaseResponseMessage &)
- Protected Member Functions inherited from BaseRpcMessage
bool operator== (const BaseRpcMessage &)
- Protected Member Functions inherited from BaseOverlayMessage
bool operator== (const BaseOverlayMessage &)

Protected Attributes

OverlayKey key_var
BinaryValue hashValue_var
bool isHash_var
DhtDumpEntryresult_var
unsigned int result_arraysize
- Protected Attributes inherited from BaseResponseMessage
int callHopCount_var
double * ncsInfo_var
unsigned int ncsInfo_arraysize
- Protected Attributes inherited from BaseRpcMessage
unsigned int nonce_var
NodeHandle srcNode_var
AuthBlockauthBlock_var
uint8_t authBlock_arraysize
- Protected Attributes inherited from BaseOverlayMessage
int type_var
int statType_var

Private Member Functions

void copy (const DHTGetResponse &other)

Detailed Description

Class generated from applications/dht/DHTMessage.msg by opp_msgc.

packet DHTGetResponse extends BaseResponseMessage
{
    OverlayKey key;
    BinaryValue hashValue;    
    bool isHash;
    DhtDumpEntry result[];
}

Definition at line 209 of file DHTMessage_m.h.

Constructor & Destructor Documentation

DHTGetResponse::DHTGetResponse ( const char *  name = NULL,
int  kind = 0 
)

Referenced by dup().

DHTGetResponse::DHTGetResponse ( const DHTGetResponse other)
virtual DHTGetResponse::~DHTGetResponse ( )
virtual

Member Function Documentation

void DHTGetResponse::copy ( const DHTGetResponse other)
private
virtual DHTGetResponse* DHTGetResponse::dup ( ) const
inlinevirtual

Reimplemented from BaseResponseMessage.

Reimplemented in CBRDHTGetResponse.

Definition at line 230 of file DHTMessage_m.h.

{return new DHTGetResponse(*this);}
virtual BinaryValue& DHTGetResponse::getHashValue ( )
virtual
virtual const BinaryValue& DHTGetResponse::getHashValue ( ) const
inlinevirtual

Definition at line 239 of file DHTMessage_m.h.

Referenced by getHashValue().

{return const_cast<DHTGetResponse*>(this)->getHashValue();}
virtual bool DHTGetResponse::getIsHash ( ) const
virtual
virtual OverlayKey& DHTGetResponse::getKey ( )
virtual
virtual const OverlayKey& DHTGetResponse::getKey ( ) const
inlinevirtual

Definition at line 236 of file DHTMessage_m.h.

Referenced by getKey().

{return const_cast<DHTGetResponse*>(this)->getKey();}
virtual DhtDumpEntry& DHTGetResponse::getResult ( unsigned int  k)
virtual
virtual const DhtDumpEntry& DHTGetResponse::getResult ( unsigned int  k) const
inlinevirtual

Definition at line 246 of file DHTMessage_m.h.

Referenced by getResult().

{return const_cast<DHTGetResponse*>(this)->getResult(k);}
virtual unsigned int DHTGetResponse::getResultArraySize ( ) const
virtual
DHTGetResponse& DHTGetResponse::operator= ( const DHTGetResponse other)
bool DHTGetResponse::operator== ( const DHTGetResponse )
protected
virtual void DHTGetResponse::parsimPack ( cCommBuffer *  b)
virtual

Reimplemented from BaseResponseMessage.

Reimplemented in CBRDHTGetResponse.

Referenced by doPacking().

virtual void DHTGetResponse::parsimUnpack ( cCommBuffer *  b)
virtual

Reimplemented from BaseResponseMessage.

Reimplemented in CBRDHTGetResponse.

Referenced by doUnpacking().

virtual void DHTGetResponse::setHashValue ( const BinaryValue hashValue)
virtual

Referenced by DHT::handleGetRequest().

virtual void DHTGetResponse::setIsHash ( bool  isHash)
virtual
virtual void DHTGetResponse::setKey ( const OverlayKey key)
virtual
virtual void DHTGetResponse::setResult ( unsigned int  k,
const DhtDumpEntry result 
)
virtual
virtual void DHTGetResponse::setResultArraySize ( unsigned int  size)
virtual

Member Data Documentation

BinaryValue DHTGetResponse::hashValue_var
protected

Definition at line 213 of file DHTMessage_m.h.

bool DHTGetResponse::isHash_var
protected

Definition at line 214 of file DHTMessage_m.h.

OverlayKey DHTGetResponse::key_var
protected

Definition at line 212 of file DHTMessage_m.h.

unsigned int DHTGetResponse::result_arraysize
protected

Definition at line 216 of file DHTMessage_m.h.

DhtDumpEntry* DHTGetResponse::result_var
protected

Definition at line 215 of file DHTMessage_m.h.


The documentation for this class was generated from the following file: