OLD | NEW |
1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
3 // http://code.google.com/p/protobuf/ | 3 // https://developers.google.com/protocol-buffers/ |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
11 // * Redistributions in binary form must reproduce the above | 11 // * Redistributions in binary form must reproduce the above |
12 // copyright notice, this list of conditions and the following disclaimer | 12 // copyright notice, this list of conditions and the following disclaimer |
13 // in the documentation and/or other materials provided with the | 13 // in the documentation and/or other materials provided with the |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 | 47 |
48 namespace google { | 48 namespace google { |
49 namespace protobuf { | 49 namespace protobuf { |
50 | 50 |
51 class Message; | 51 class Message; |
52 | 52 |
53 namespace compiler { | 53 namespace compiler { |
54 | 54 |
55 // Utility class for launching sub-processes. | 55 // Utility class for launching sub-processes. |
56 class Subprocess { | 56 class LIBPROTOC_EXPORT Subprocess { |
57 public: | 57 public: |
58 Subprocess(); | 58 Subprocess(); |
59 ~Subprocess(); | 59 ~Subprocess(); |
60 | 60 |
61 enum SearchMode { | 61 enum SearchMode { |
62 SEARCH_PATH, // Use PATH environment variable. | 62 SEARCH_PATH, // Use PATH environment variable. |
63 EXACT_NAME // Program is an exact file name; don't use the PATH. | 63 EXACT_NAME // Program is an exact file name; don't use the PATH. |
64 }; | 64 }; |
65 | 65 |
66 // Start the subprocess. Currently we don't provide a way to specify | 66 // Start the subprocess. Currently we don't provide a way to specify |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 int child_stdout_; | 99 int child_stdout_; |
100 | 100 |
101 #endif // !_WIN32 | 101 #endif // !_WIN32 |
102 }; | 102 }; |
103 | 103 |
104 } // namespace compiler | 104 } // namespace compiler |
105 } // namespace protobuf | 105 } // namespace protobuf |
106 | 106 |
107 } // namespace google | 107 } // namespace google |
108 #endif // GOOGLE_PROTOBUF_COMPILER_SUBPROCESS_H__ | 108 #endif // GOOGLE_PROTOBUF_COMPILER_SUBPROCESS_H__ |
OLD | NEW |