| 1 | #ifndef GENNS_HPP |
| 2 | #define GENNS_HPP |
| 3 | |
| 4 | struct GeneratorContext; |
| 5 | |
| 6 | #include <memory> |
| 7 | #include <vector> |
| 8 | |
| 9 | class NamespaceGenerator |
| 10 | { |
| 11 | public: |
| 12 | static std::shared_ptr<NamespaceGenerator> new_( |
| 13 | GeneratorContext &ctx, const std::string &filename); |
| 14 | |
| 15 | virtual ~NamespaceGenerator() {} |
| 16 | |
| 17 | virtual std::string get_ns() const = 0; |
| 18 | |
| 19 | virtual std::vector<std::string> get_dependencies() const = 0; |
| 20 | |
| 21 | virtual std::string process_tree( |
| 22 | const std::vector<std::string> &dep_headers) = 0; |
| 23 | }; |
| 24 | |
| 25 | #endif // GENNS_HPP |