xorp

ElemBool Class Reference

boolean element. More...

#include <element.hh>

Inheritance diagram for ElemBool:
Element

List of all members.

Public Member Functions

 ElemBool (const char *c_str)
 ElemBool (const bool val)
string str () const
 Every element must be representable by a string.
bool val () const
const char * type () const
bool operator== (const ElemBool &rhs) const

Static Public Attributes

static const char * id = "bool"
static Hash _hash = HASH_ELEM_BOOL

Private Attributes

bool _val

Detailed Description

boolean element.


Member Function Documentation

string ElemBool::str ( ) const [inline, virtual]

Every element must be representable by a string.

This is a requirement to enable the policy manager to send elements to the backend filters via XRL calls for example.

Returns:
string representation of the element.

Implements Element.

const char* ElemBool::type ( ) const [inline, virtual]
Returns:
string representation of element type.

Implements Element.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations