Kea  2.1.7-git
isc::data::UserContext Struct Reference

Base class for user context. More...

#include <user_context.h>

+ Inheritance diagram for isc::data::UserContext:

Public Member Functions

void contextToElement (data::ElementPtr map) const
 Merge unparse a user_context object. More...
 
data::ConstElementPtr getContext () const
 Returns const pointer to the user context. More...
 
void setContext (const data::ConstElementPtr &ctx)
 Sets user context. More...
 

Static Public Member Functions

static data::ElementPtr toElement (data::ConstElementPtr map)
 Copy an Element map. More...
 

Protected Attributes

data::ConstElementPtr user_context_
 Pointer to the user context (may be NULL) More...
 

Detailed Description

Base class for user context.

Many configuration structures allow attaching and storing arbitrary user data that we call user context. Each of those configuration structures need to derive from this class or include this class to handle user context.

Definition at line 22 of file user_context.h.

Member Function Documentation

◆ contextToElement()

◆ getContext()

◆ setContext()

◆ toElement()

ElementPtr isc::data::UserContext::toElement ( data::ConstElementPtr  map)
static

Copy an Element map.

A previous version of this extracted comments.

Parameters
mapA pointer to map.
Returns
a copy of map

Definition at line 24 of file user_context.cc.

References isc::data::copy().

Referenced by isc::dhcp::CfgOption::getVendorIds(), and setContext().

+ Here is the call graph for this function:

Member Data Documentation

◆ user_context_

data::ConstElementPtr isc::data::UserContext::user_context_
protected

Pointer to the user context (may be NULL)

Definition at line 52 of file user_context.h.

Referenced by getContext(), and setContext().


The documentation for this struct was generated from the following files: