c2efcebc971c4887a88c0346e8fd06b8de607cac
[platform/core/ml/nnfw.git] / tools / nnapi_quickcheck / inc / env.h
1 /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *    http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __ENV_UTILS_H__
18 #define __ENV_UTILS_H__
19
20 #include <string>
21
22 #include <cstdint>
23
24 class IntVar
25 {
26 public:
27   IntVar(const std::string &name, int32_t value);
28
29 public:
30   int32_t operator()(void) const { return _value; }
31
32 private:
33   int32_t _value;
34 };
35
36 class FloatVar
37 {
38 public:
39   FloatVar(const std::string &name, float value);
40
41 public:
42   float operator()(void) const { return _value; }
43
44 private:
45   float _value;
46 };
47
48 class StrVar
49 {
50 public:
51   StrVar(const std::string &name, const std::string &value);
52
53 public:
54   const std::string &operator()(void) const { return _value; }
55
56 private:
57   std::string _value;
58 };
59
60 #endif // __ENV_UTILS_H__