diff options
Diffstat (limited to 'compiler/luci/tester/src/Model.h')
-rw-r--r-- | compiler/luci/tester/src/Model.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/compiler/luci/tester/src/Model.h b/compiler/luci/tester/src/Model.h new file mode 100644 index 000000000..e40faf33e --- /dev/null +++ b/compiler/luci/tester/src/Model.h @@ -0,0 +1,27 @@ +#ifndef __TESTER_MODEL_H__ +#define __TESTER_MODEL_H__ + +#include <mio/circle/schema_generated.h> + +#include <memory> + +namespace luci +{ + +struct Model +{ + virtual ~Model() = default; + + virtual const ::circle::Model *model(void) = 0; +}; + +/** + * @brief Load Circle model (as a raw Model) from a given path + * + * @note May return a nullptr + */ +std::unique_ptr<Model> load_model(const std::string &path); + +} // namespace luci + +#endif // __TESTER_MODEL_H__ |