/* * Copyright (c) 2021 Huawei Device Co., Ltd. * * HDF is dual licensed: you can use it either under the terms of * the GPL, or the BSD license, at your option. * See the LICENSE file in the root of this repository for complete details. */ #ifndef HC_GEN_GENERATOR_H #define HC_GEN_GENERATOR_H #include #include "ast.h" namespace OHOS { namespace Hardware { class Generator { public: explicit Generator(std::shared_ptr ast) : ast_(ast) {}; virtual ~Generator() = default; virtual bool Output() = 0; protected: std::shared_ptr ast_; }; } // namespace Hardware } // namespace OHOS #endif // HC_GEN_GENERATOR_H