#include "redactor.h"
#include <cerrno>
#include <cstring>
#include <ostream>
#include <sstream>
#include <sys/stat.h>
#include <vector>
#include <gutil/strings/substitute.h>
#include <rapidjson/document.h>
#include <rapidjson/filestream.h>
#include <rapidjson/rapidjson.h>
#include <rapidjson/reader.h>
#include <re2/re2.h>
#include <re2/stringpiece.h>
#include "common/logging.h"
Go to the source code of this file.
|
| impala |
| This file contains type definitions that are used throughout the code base.
|
|
#define EXTRACT_VALUE |
( |
|
json_type, |
|
|
|
cpp_type |
|
) |
| |
Value:bool ValidateTypeAndExtractValue(
const string&
name,
const Value& json_value, \
cpp_type* value) { \
if (!json_value.Is ## json_type()) { \
AddRuleParseError() << name << " property must be of type " #json_type \
return false; \
} \
*value = json_value.Get ## json_type(); \
return true; \
}
string NameOfTypeOfJsonValue(const Value &value)
Definition at line 233 of file redactor.cc.