What used to be referred to as a namespace is now called a package. This CL is a semantic change only. Bug: 285000854 Test: m nothing Test: atest aconfig.test Change-Id: If3fca67c415af75b44f316e16666b97089407069
26 lines
715 B
Plaintext
26 lines
715 B
Plaintext
#ifndef {package}_HEADER_H
|
|
#define {package}_HEADER_H
|
|
#include "{package}.h"
|
|
{{ if readwrite }}
|
|
#include <server_configurable_flags/get_flags.h>
|
|
using namespace server_configurable_flags;
|
|
{{ endif }}
|
|
namespace {package} \{
|
|
{{ for item in class_elements}}
|
|
class {item.flag_name} \{
|
|
public:
|
|
virtual const bool value() \{
|
|
{{ if item.readwrite- }}
|
|
return GetServerConfigurableFlag(
|
|
"{package}",
|
|
"{item.flag_name}",
|
|
"{item.default_value}") == "true";
|
|
{{ -else- }}
|
|
return {item.default_value};
|
|
{{ -endif }}
|
|
}
|
|
}
|
|
{{ endfor }}
|
|
}
|
|
#endif
|