#include "Knob.h"
#include <pepper/strcast.h>
#include <iostream>
#include <string>
#include "Knob.lst"
Go to the source code of this file.
◆ KNOB_BOOL
#define KNOB_BOOL |
( |
|
NAME, |
|
|
|
DEFAULT, |
|
|
|
DESC |
|
) |
| |
Value: template <> typename KnobTrait<Knob::NAME>::ValueType get<Knob::NAME>(void) \
{ \
static typename KnobTrait<Knob::NAME>::ValueType value = \
::knob_load<typename KnobTrait<Knob::NAME>::ValueType>(::knob_loader(), #NAME, DEFAULT); \
return value; \
}
Definition at line 112 of file Knob.cpp.
114 { \
115 static typename KnobTrait<Knob::NAME>::ValueType value = \
116 ::knob_load<typename KnobTrait<Knob::NAME>::ValueType>(::knob_loader(), #
NAME, DEFAULT); \
117 return value; \
118 }