11 #ifndef SQUID_SNMPX_VAR_H 12 #define SQUID_SNMPX_VAR_H 68 void setValue(
const void* value,
int length,
int aType);
void clear()
clear all internal members
void init()
initialize members
unsigned int asTimeTicks() const
returns variable value as time ticks
void assign(const Var &var)
perform full assignment
void unpack(const Ipc::TypedMsgHdr &msg)
restore struct from the message
Range< const oid * > getName() const
returns variable name
Range< const oid * > asObject() const
returns variable value as object oid
void pack(Ipc::TypedMsgHdr &msg) const
prepare for sendmsg()
int asInt() const
returns variable value as integer
bool operator<(const Var &var) const
void setString(const Range< const u_char *> &string)
assign string to variable
void setTimeTicks(unsigned int ticks)
assign unsigned int (time) value to variable
Range< const u_char * > asString() const
returns variable value as chars string
void setCounter(int value)
assign Counter32 value to variable
bool operator>(const Var &var) const
void setGauge(unsigned int value)
assign unsigned int value to variable
int asCounter() const
returns variable value as Counter32
void clearValue()
clear .val member
void setInt(int value)
assign int value to variable
void setName(const Range< const oid *> &aName)
set new variable name
void setCounter64(long long int counter)
assign Counter64 value to variable
long long int asCounter64() const
returns variable value as Counter64
struct msghdr with a known type, fixed-size I/O and control buffers
Var & operator=(const Var &var)
void setObject(const Range< const oid *> &object)
assign object oid to variable
Var & operator+=(const Var &var)
Var & operator/=(int num)
void setValue(const void *value, int length, int aType)
set new variable value
void clearName()
clear variable name
unsigned int asGauge() const
returns variable value as unsigned int
void copyValue(const Var &var)
copy variable from another one