CBuild
C++ build system with scripts written in c++
Loading...
Searching...
No Matches
generator.hpp
Go to the documentation of this file.
1
22#ifndef __CBUILD_GENERATOR_HPP__
23#define __CBUILD_GENERATOR_HPP__
24// C++ libraries
25#include "string"
26// Project includes
27#include "../CBuild.hpp"
28#include "../map.hpp"
29#include "../system.hpp"
30// Code
31namespace CBuild {
37 protected:
38 std::string OUT;
39
40 public:
46 generator_base(std::string out) {
47 this->OUT = out;
48 }
57 std::vector<std::string>* pargs) = 0;
63 virtual bool init() = 0;
64};
65} // namespace CBuild
66#endif // __CBUILD_GENERATOR_HPP__
Main headers of CBuild core.
Base for any generator.
Definition generator.hpp:36
generator_base(std::string out)
Create and save output file name.
Definition generator.hpp:46
virtual void generate(CBuild::RType mode, lib::map< std::string, std::string > *args, std::vector< std::string > *pargs)=0
Generate some output.
virtual bool init()=0
Some init.
Simple map implementation with some stack operation added.
Definition map.hpp:79
Custom implementation of map datatype.
Filebuffer for CBuild ecosystem.
Definition Build.hpp:34
RType
Run mode.
Definition CBuild.hpp:34
Custom system() wraper.