blob: 7d26926189af5bb28e353cf6d324e8f71b4c2b21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
// **********************************************************************
//
// Copyright (c) 2003
// ZeroC, Inc.
// Billerica, MA, USA
//
// All Rights Reserved.
//
// Ice is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License version 2 as published by
// the Free Software Foundation.
//
// **********************************************************************
#ifndef PREPROCESSOR_H
#define PREPROCESSOR_H
#include <IceUtil/Config.h>
#ifdef _WIN32
# ifdef SLICE_API_EXPORTS
# define SLICE_API __declspec(dllexport)
# else
# define SLICE_API __declspec(dllimport)
# endif
#else
# define SLICE_API /**/
#endif
namespace Slice
{
class SLICE_API 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
|