OpendTect  7.0
Public Member Functions | Protected Attributes | List of all members
Network::PacketInterpreter Class Reference

Public Member Functions

 PacketInterpreter (const RequestPacket &, int startpos=0)
 
 ~PacketInterpreter ()
 
bool atEndOfPkt () const
 
template<>
void get (BufferString &var) const
 
template<class T >
void get (T &) const
 
template<class T >
void getArr (ArrayND< T > &, bool rawmode=false) const
 
template<class T >
void getArr (T *, int maxsz, bool rawmode=false) const
 
bool getBool () const
 
void getBytes (void *, int nrbytes) const
 
double getDouble () const
 
float getFloat () const
 
int getInt () const
 
void getSet (BufferStringSet &, int maxsz=-1) const
 
template<class T >
void getSet (TypeSet< T > &, int maxsz=-1, bool rawmode=false) const
 
BufferString getString () const
 
void move (int nrb) const
 
void moveTo (int pos) const
 
template<class T >
void peek (T &) const
 
int peekInt () const
 

Protected Attributes

int curpos_
 
const RequestPacketpkt_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ PacketInterpreter()

Network::PacketInterpreter::PacketInterpreter ( const RequestPacket ,
int  startpos = 0 
)

◆ ~PacketInterpreter()

Network::PacketInterpreter::~PacketInterpreter ( )

Member Function Documentation

◆ atEndOfPkt()

bool Network::PacketInterpreter::atEndOfPkt ( ) const
inline

◆ get() [1/2]

template<>
void Network::PacketInterpreter::get ( BufferString var) const
inline

◆ get() [2/2]

template<class T >
void Network::PacketInterpreter::get ( T &  var) const
inline

◆ getArr() [1/2]

template<class T >
void Network::PacketInterpreter::getArr ( ArrayND< T > &  arr,
bool  rawmode = false 
) const
inline

◆ getArr() [2/2]

template<class T >
void Network::PacketInterpreter::getArr ( T *  arr,
int  maxsz,
bool  rawmode = false 
) const
inline

◆ getBool()

bool Network::PacketInterpreter::getBool ( ) const
inline

◆ getBytes()

void Network::PacketInterpreter::getBytes ( void *  ptr,
int  nrbytes 
) const
inline

◆ getDouble()

double Network::PacketInterpreter::getDouble ( ) const
inline

◆ getFloat()

float Network::PacketInterpreter::getFloat ( ) const
inline

◆ getInt()

int Network::PacketInterpreter::getInt ( ) const
inline

◆ getSet() [1/2]

void Network::PacketInterpreter::getSet ( BufferStringSet bss,
int  maxsz = -1 
) const
inline

◆ getSet() [2/2]

template<class T >
void Network::PacketInterpreter::getSet ( TypeSet< T > &  ts,
int  maxsz = -1,
bool  rawmode = false 
) const
inline

◆ getString()

BufferString Network::PacketInterpreter::getString ( ) const
inline

◆ move()

void Network::PacketInterpreter::move ( int  nrb) const
inline

◆ moveTo()

void Network::PacketInterpreter::moveTo ( int  pos) const
inline

◆ peek()

template<class T >
void Network::PacketInterpreter::peek ( T &  var) const
inline

◆ peekInt()

int Network::PacketInterpreter::peekInt ( ) const
inline

Member Data Documentation

◆ curpos_

int Network::PacketInterpreter::curpos_
mutableprotected

◆ pkt_

const RequestPacket& Network::PacketInterpreter::pkt_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024