NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
jsonloader::EnumField Class Reference

#include <validation.h>

Inheritance diagram for jsonloader::EnumField:
Inheritance graph

Public Types

using Values = std::vector< std::string >
 

Public Member Functions

 EnumField (std::string const &name, Values const &values, bool required=true)
 
bool Validate (Json::Value const &obj) const override
 
- Public Member Functions inherited from jsonloader::Field
 Field (std::string const &name, Json::ValueType type, bool required=true)
 

Additional Inherited Members

- Protected Member Functions inherited from jsonloader::Field
std::string const & name () const noexcept
 

Member Typedef Documentation

◆ Values

using jsonloader::EnumField::Values = std::vector<std::string>

Constructor & Destructor Documentation

◆ EnumField()

jsonloader::EnumField::EnumField ( std::string const &  name,
Values const &  values,
bool  required = true 
)

Member Function Documentation

◆ Validate()

bool jsonloader::EnumField::Validate ( Json::Value const &  obj) const
overridevirtual

Reimplemented from jsonloader::Field.


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