NetBurner 3.5.6
PDF Version
config_pass_limit Class Reference

A config_pass with minimum and/or maximum lengths Attempting to set a value shorter than the minimum or longer than the maximum will fail with an error both programmatically and in the Config Web UI. More...

#include <config_obj.h>

Inherits config_pass.

Public Member Functions

 config_pass_limit (config_obj &owner, NBString def_val, size_t minl=0, size_t maxl=0, const char *name=NULL, const char *desc=NULL)
 Object constructor with the parent/owner leaf parameter and limits.
 
 config_pass_limit (NBString def_val, size_t minl=0, size_t maxl=0, const char *name=NULL, const char *desc=NULL)
 Object constructor with limits.
 
config_pass_limitoperator= (const config_pass &ci)
 Copy a config_pass object into the config_pass_limit.
 
config_pass_limitoperator= (const config_pass_limit &cil)
 Copy one config_pass_limit object to another.
 
- Public Member Functions inherited from config_pass
 config_pass (config_obj &owner, NBString def_val, const char *name, const char *desc=NULL)
 Object constructor with the parent/owner leaf parameter.
 
 config_pass (NBString def_val, const char *name, const char *desc=NULL)
 Object constructor.
 
 config_pass (config_obj &owner, const char *def_val, const char *name, const char *desc=NULL)
 Object constructor with the parent/owner leaf parameter.
 
 config_pass (const char *def_val, const char *name, const char *desc=NULL)
 Object constructor.
 
virtual void GetTextValue (NBString &s) override
 Get the config_pass object value as a text string.
 
virtual void GetRawValue (NBString &s) override
 Copy the raw config_string object value to the NBString object.
 
 operator NBString () const
 Returns the object value.
 
config_passoperator= (const char *p)
 Assign the config_pass object value from a const char* value.
 
config_passoperator= (const NBString &s)
 Assign the config_pass object value from a NBString object.
 
config_passoperator= (const config_string &ci)
 Copy a config_string object to a config_pass object.
 
config_passoperator= (const config_pass &ci)
 Copy one config_pass object to another.
 
- Public Member Functions inherited from config_string
 config_string (config_obj &owner, NBString def_val, const char *name, const char *desc=NULL)
 Object constructor with the parent/owner leaf parameter.
 
 config_string (NBString def_val, const char *name, const char *desc=NULL)
 Object constructor.
 
 config_string (config_obj &owner, const char *def_val, const char *name, const char *desc=NULL)
 Object constructor with the parent/owner leaf parameter.
 
 config_string (const char *def_val, const char *name, const char *desc=NULL)
 Object constructor.
 
void SetEnumList (NBString s)
 Renders the data used to explain the schema/descriptions for the list of choices.
 
 operator NBString () const
 Return the object value.
 
config_stringoperator= (const char *p)
 Assign the config_string object value from a const char* string.
 
config_stringoperator= (const NBString &s)
 Assign the config_string object value from a NBString object.
 
config_stringoperator= (const config_string &ci)
 Copy one config_string object to another.
 
const char * c_str () const
 Returns the object value as a string.
 
size_t length () const
 Returns the string length in bytes.
 
const char & operator[] (size_t pos) const
 Return the value of a character in the string.
 
virtual void GetTypeValue (NBString &s) override
 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

A config_pass with minimum and/or maximum lengths Attempting to set a value shorter than the minimum or longer than the maximum will fail with an error both programmatically and in the Config Web UI.

Constructor & Destructor Documentation

◆ config_pass_limit() [1/2]

config_pass_limit::config_pass_limit ( config_obj & owner,
NBString def_val,
size_t minl = 0,
size_t maxl = 0,
const char * name = NULL,
const char * desc = NULL )
inline

Object constructor with the parent/owner leaf parameter and limits.

Parameters
ownerReference to owner/parent leaf
def_valDefault value
minlMinimum length
maxlMaximum length
nameField name assigned to the value
descDescription used for info/tool tip

◆ config_pass_limit() [2/2]

config_pass_limit::config_pass_limit ( NBString def_val,
size_t minl = 0,
size_t maxl = 0,
const char * name = NULL,
const char * desc = NULL )
inline

Object constructor with limits.

Parameters
def_valDefault value
minlMinimum length
maxlMaximum length
nameField name assigned to the value
descDescription used for info/tool tip

Member Function Documentation

◆ operator=() [1/2]

config_pass_limit & config_pass_limit::operator= ( const config_pass & ci)
inline

Copy a config_pass object into the config_pass_limit.

Parameters
ciReference to a config_pass object

◆ operator=() [2/2]

config_pass_limit & config_pass_limit::operator= ( const config_pass_limit & cil)
inline

Copy one config_pass_limit object to another.

Parameters
cilReference to a config_pass_limit object

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