NetBurner 3.5.0
PDF Version
 
config_MACADR Class Reference

Configuration Variable for MACADR object type. More...

#include <config_obj.h>

Inherits config_value.

Public Member Functions

virtual void GetTextValue (NBString &s)
 Get the object value as a text string with quotations to the specified NBString object.
 
 config_MACADR (config_obj &owner, MACADR def_val, const char *name, const char *desc=NULL)
 Object constructor with the parent/owner leaf parameter.
 
 config_MACADR (MACADR def_val, const char *name, const char *desc=NULL)
 Object constructor.
 
 config_MACADR (config_obj &owner, const char *def_val, const char *name, const char *desc=NULL)
 Object constructor with the parent/owner leaf parameter.
 
 config_MACADR (const char *def_val, const char *name, const char *desc=NULL)
 Object constructor.
 
 operator MACADR () const
 Returns the object value.
 
config_MACADRoperator= (const config_MACADR &ci)
 Copy one config_MACADR object to another.
 
config_MACADRoperator= (const MACADR &ci)
 Copy a MACADR object value to a MACADR object.
 
virtual void GetTypeValue (NBString &s)
 Copy the object type value to the specified NBString object.
 

Additional Inherited Members

- Protected Member Functions inherited from config_value
 config_value (config_obj &owner, const char *name, const char *desc)
 Object constructor with the parent/owner leaf parameter.
 
 config_value (const char *name, const char *desc)
 Object constructor.
 

Detailed Description

Configuration Variable for MACADR object type.

Note
All modifictions to configuration objects are marked as pending. A call to SaveConfigToStorage is required to save changes to flash memory.

Constructor & Destructor Documentation

◆ config_MACADR() [1/4]

config_MACADR::config_MACADR ( config_obj & owner,
MACADR def_val,
const char * name,
const char * desc = NULL )
inline

Object constructor with the parent/owner leaf parameter.

Default value assigned with an MACADR object

Parameters
ownerReference to owner/parent leaf
def_valDefault value of type MACADR
nameField name assigned to the value
descDescription used for info/tool tip

◆ config_MACADR() [2/4]

config_MACADR::config_MACADR ( MACADR def_val,
const char * name,
const char * desc = NULL )
inline

Object constructor.

Default value assigned with an MACADR object

Parameters
def_valDefault value of type MACADR
nameField name assigned to the value
descDescription used for info/tool tip

◆ config_MACADR() [3/4]

config_MACADR::config_MACADR ( config_obj & owner,
const char * def_val,
const char * name,
const char * desc = NULL )
inline

Object constructor with the parent/owner leaf parameter.

Default value is assigned with a const char * string. The AsciiToMac() function is used to convert the string to a MACADR.

Parameters
ownerReference to owner/parent leaf
def_valDefault MAC Address value of type char *. The hexidical format must be 6 octets, with or without ':' separators. For example, "0123456789AB", or "01:23:45:67:89:AB"
nameField name assigned to the value
descDescription used for info/tool tip

◆ config_MACADR() [4/4]

config_MACADR::config_MACADR ( const char * def_val,
const char * name,
const char * desc = NULL )
inline

Object constructor.

Default value is assigned with a const char * string. The AsciiToMac() function is used to convert the string to a MACADR.

Parameters
def_valDefault MAC Address value of type char *. The hexidical format must be 6 octets, with or without ':' separators. For example, "0123456789AB", or "01:23:45:67:89:AB"
nameField name assigned to the value
descDescription used for info/tool tip

Member Function Documentation

◆ GetTextValue()

virtual void config_MACADR::GetTextValue ( NBString & s)
inlinevirtual

Get the object value as a text string with quotations to the specified NBString object.

The format is the hexadecimal address: "xx:xx:xx:xx:xx:xx" This is a virtual function that can be overridden in any derived class.

Parameters
sReference to a NBString object to store the result

Implements config_value.

◆ GetTypeValue()

virtual void config_MACADR::GetTypeValue ( NBString & s)
inlinevirtual

Copy the object type value to the specified NBString object.

The type value "string" is written to the NBString object.

Parameters
sNBString object to hold the type value string

◆ operator MACADR()

config_MACADR::operator MACADR ( ) const
inline

Returns the object value.

Returns
The value of the object as a MACADR

◆ operator=() [1/2]

config_MACADR & config_MACADR::operator= ( const config_MACADR & ci)
inline

Copy one config_MACADR object to another.

Parameters
ciReference to a config_IPADDR object

◆ operator=() [2/2]

config_MACADR & config_MACADR::operator= ( const MACADR & ci)
inline

Copy a MACADR object value to a MACADR object.

Parameters
ciReference to an MACADR object

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