CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
process_start_info.h
1
2#ifndef _aspose_system_diagnostics_process_start_info_h_
3#define _aspose_system_diagnostics_process_start_info_h_
4
5#include "fwd.h"
6#include "system/object.h"
7#include "system/string.h"
8#include "system/text/encoding.h"
9#include "system/diagnostics/process_window_style.h"
10#include "system/collections/dictionary.h"
11
12namespace System
13{
14namespace Diagnostics
15{
16
21class ASPOSECPP_SHARED_CLASS ProcessStartInfo : public System::Object
22{
23public:
25 ASPOSECPP_SHARED_API ProcessStartInfo();
28 ASPOSECPP_SHARED_API ProcessStartInfo(const String& fileName);
32 ASPOSECPP_SHARED_API ProcessStartInfo(const String& fileName, const String& arguments);
33
36 ASPOSECPP_SHARED_API bool get_CreateNoWindow() const;
39 ASPOSECPP_SHARED_API void set_CreateNoWindow(bool value);
42 ASPOSECPP_SHARED_API bool get_UseShellExecute() const;
45 ASPOSECPP_SHARED_API void set_UseShellExecute(bool value);
48 ASPOSECPP_SHARED_API String get_Arguments() const;
51 ASPOSECPP_SHARED_API void set_Arguments(const String& value);
54 ASPOSECPP_SHARED_API bool get_RedirectStandardOutput() const;
57 ASPOSECPP_SHARED_API void set_RedirectStandardOutput(bool value);
60 ASPOSECPP_SHARED_API bool get_RedirectStandardInput() const;
63 ASPOSECPP_SHARED_API void set_RedirectStandardInput(bool value);
66 ASPOSECPP_SHARED_API bool get_RedirectStandardError() const;
69 ASPOSECPP_SHARED_API void set_RedirectStandardError(bool value);
72 ASPOSECPP_SHARED_API String get_WorkingDirectory() const;
75 ASPOSECPP_SHARED_API void set_WorkingDirectory(const String& value);
78 ASPOSECPP_SHARED_API ProcessWindowStyle get_WindowStyle() const;
81 ASPOSECPP_SHARED_API void set_WindowStyle(ProcessWindowStyle value);
84 ASPOSECPP_SHARED_API String get_FileName() const;
87 ASPOSECPP_SHARED_API void set_FileName(const String& value);
91
92private:
94 String m_file_name;
96 String m_arguments;
98 String m_directory;
100 ProcessWindowStyle m_window_style;
102 bool m_use_shell_execute;
104 String m_user_name;
106 String m_domain;
108 String m_password;
110 bool m_load_user_profile;
112 bool m_redirect_standard_input;
114 bool m_redirect_standard_output;
116 bool m_redirect_standard_error;
118 bool m_create_no_window;
120 SharedPtr<System::Text::Encoding> m_standard_output_encoding;
122 SharedPtr<System::Text::Encoding> m_standard_error_encoding;
125};
126
127}
128}
129#endif
Describes process start parameters. Objects of this class should only be allocated using System::Make...
Definition: process_start_info.h:22
void set_RedirectStandardInput(bool value)
Sets RedirectStandardInput property.
ProcessStartInfo()
Creates empty start info object.
String get_FileName() const
Gets process file name.
bool get_RedirectStandardInput() const
Gets RedirectStandardInput property.
bool get_UseShellExecute() const
Gets UseShellExecute property.
bool get_RedirectStandardOutput() const
Gets RedirectStandardOutput property.
void set_Arguments(const String &value)
Sets process arguments.
void set_FileName(const String &value)
Sets process file name.
void set_WindowStyle(ProcessWindowStyle value)
Sets window style.
bool get_RedirectStandardError() const
Gets RedirectStandardError property.
ProcessWindowStyle get_WindowStyle() const
Gets window style.
void set_RedirectStandardOutput(bool value)
Sets RedirectStandardOutput property.
bool get_CreateNoWindow() const
Gets NoWindow property.
String get_Arguments() const
Gets process arguments.
ProcessStartInfo(const String &fileName)
Creates start info object.
void set_RedirectStandardError(bool value)
Sets RedirectStandardError property.
String get_WorkingDirectory() const
Gets working directory of the process.
void set_UseShellExecute(bool value)
Sets UseShellExecute property.
void set_WorkingDirectory(const String &value)
Sets working directory of the process.
SharedPtr< System::Collections::Generic::Dictionary< String, String > > get_EnvironmentVariables() const
Gets process environment variables.
ProcessStartInfo(const String &fileName, const String &arguments)
Creates start info object.
void set_CreateNoWindow(bool value)
Sets NoWindow property.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
ProcessWindowStyle
Style of process window.
Definition: process_window_style.h:8
Definition: db_command.h:9