#include <ParserNode.h>
Definition at line 1208 of file ParserNode.h.
◆ ValidateStmt()
Parser::ValidateStmt::ValidateStmt |
( |
std::string * |
type, |
|
|
std::list< NameValueAssign *> * |
with_opts |
|
) |
| |
|
inline |
Definition at line 1210 of file ParserNode.h.
References CHECK.
1212 throw std::runtime_error(
"Validation Type is required for VALIDATE command.");
1214 std::list<std::unique_ptr<NameValueAssign>> options;
1216 for (
const auto e : *with_opts) {
1217 options.emplace_back(e);
1221 for (
const auto& opt : options) {
1222 if (boost::iequals(*opt->get_name(),
"REPAIR_TYPE")) {
1223 const auto repair_type =
1224 static_cast<const StringLiteral*
>(opt->get_value())->get_stringval();
1226 if (boost::iequals(*repair_type,
"REMOVE")) {
1229 throw std::runtime_error(
"REPAIR_TYPE must be REMOVE.");
1232 throw std::runtime_error(
"The only VALIDATE WITH options is REPAIR_TYPE.");
std::unique_ptr< std::string > type_
◆ execute()
◆ getType()
const std::string Parser::ValidateStmt::getType |
( |
| ) |
const |
|
inline |
Definition at line 1240 of file ParserNode.h.
1240 {
return *(
type_.get()); }
std::unique_ptr< std::string > type_
◆ isRepairTypeRemove()
bool Parser::ValidateStmt::isRepairTypeRemove |
( |
| ) |
const |
|
inline |
◆ isRepairTypeRemove_
bool Parser::ValidateStmt::isRepairTypeRemove_ = false |
|
private |
◆ type_
std::unique_ptr<std::string> Parser::ValidateStmt::type_ |
|
private |
The documentation for this class was generated from the following file:
- /home/jenkins-slave/workspace/core-os-doxygen/Parser/ParserNode.h