diff options
Diffstat (limited to 'cpp/include/Slice/Preprocessor.h')
-rw-r--r-- | cpp/include/Slice/Preprocessor.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/cpp/include/Slice/Preprocessor.h b/cpp/include/Slice/Preprocessor.h new file mode 100644 index 00000000000..e5ae9c737c9 --- /dev/null +++ b/cpp/include/Slice/Preprocessor.h @@ -0,0 +1,47 @@ +// ********************************************************************** +// +// Copyright (c) 2001 +// ZeroC, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#ifndef PREPROCESSOR_H +#define PREPROCESSOR_H + +#include <IceUtil/Config.h> + +namespace Slice +{ + +class Preprocessor +{ +public: + + Preprocessor(const std::string&, const std::string&, const std::string&); + ~Preprocessor(); + + FILE* preprocess(bool); + bool close(); + + void printMakefileDependencies(); + + std::string getBaseName(); + +private: + + bool checkInputFile(); + std::string searchIceCpp(); + + const std::string _path; + const std::string _fileName; + const std::string _args; + FILE* _cppHandle; + +}; + +} + +#endif |