X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tool%2Fbuiltingenerator.h;fp=tool%2Fbuiltingenerator.h;h=d6a0886ae140ea241394e0e804a2a4b8d55099f0;hb=2eeb5a5ac9508e41e6451590d20f1688cf490002;hp=0000000000000000000000000000000000000000;hpb=e5289623539d2bd64d4276551a968cf1a9f8e793;p=libs%2Fdatafile.git diff --git a/tool/builtingenerator.h b/tool/builtingenerator.h new file mode 100644 index 0000000..d6a0886 --- /dev/null +++ b/tool/builtingenerator.h @@ -0,0 +1,26 @@ +#ifndef TOOL_BUILTINGENERATOR_H_ +#define TOOL_BUILTINGENERATOR_H_ + +#include +#include +#include + +class BuiltinGenerator +{ +private: + Msp::IO::Base &out; + std::vector namespc; + std::vector filenames; + +public: + BuiltinGenerator(Msp::IO::Base &); + + void begin(const std::string &); + void add_file(const std::string &); + void end(const std::string &); + +private: + static std::string mangle_filename(const std::string &); +}; + +#endif