23#ifndef _INTERFACES_GENERATOR_TYPE_CHECKER_H_
24#define _INTERFACES_GENERATOR_TYPE_CHECKER_H_
26#define __STDC_LIMIT_MACROS
28#include <interfaces/generator/enum_constant.h>
37 static bool validType(
const std::string & type,
38 std::vector<InterfaceEnumConstant> *enum_constants = 0);
39 static bool validValue(
const std::string &type,
const std::string &value);
40 static bool validName(
const std::string &name,
const std::set<std::string> &reserved_names);
43const std::set<std::string> reserved_names_interface();
44const std::set<std::string> reserved_names_message();
Check interface type and identifier validity.
static bool validValue(const std::string &type, const std::string &value)
Check value validity for given type.
static bool validName(const std::string &name, const std::set< std::string > &reserved_names)
Check identifiers.
static bool validType(const std::string &type, std::vector< InterfaceEnumConstant > *enum_constants=0)
Decide if a supplied type is correct and in the case of constants if the supplied value matches the f...