Fawkes API  Fawkes Development Version
type_checker.h
1 
2 /***************************************************************************
3  * type_checker.h - Interface generator type checker
4  *
5  * Generated: Wed Oct 11 15:35:26 2006
6  * Copyright 2006 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Library General Public License for more details.
19  *
20  * Read the full text in the LICENSE.GPL file in the doc directory.
21  */
22 
23 #ifndef __INTERFACES_GENERATOR_TYPE_CHECKER_H_
24 #define __INTERFACES_GENERATOR_TYPE_CHECKER_H_
25 
26 #define __STDC_LIMIT_MACROS
27 
28 #include <string>
29 #include <vector>
30 
31 #include <interfaces/generator/enum_constant.h>
32 
34 {
35  public:
36  static bool validType(const std::string &type, std::vector<InterfaceEnumConstant> *enum_constants = 0);
37  static bool validValue(const std::string &type, const std::string &value);
38 };
39 
40 
41 #endif
Type checker for interface types.
Definition: type_checker.h:33
static bool validValue(const std::string &type, const std::string &value)
Check value validity for given type.
static bool validType(const std::string &type, std::vector< InterfaceEnumConstant > *enum_constants=0)
Check type validity.