Fill Process on Windows
This commit is contained in:
@ -10,17 +10,22 @@ class Process {
|
||||
public:
|
||||
std::string name;
|
||||
std::vector<std::string> args;
|
||||
std::string workingDirectory;
|
||||
std::vector<std::pair<std::string,std::string>> env;
|
||||
bool includeThisEnv;
|
||||
bool redirectStdIn=false;
|
||||
bool redirectStdOut=false;
|
||||
bool redirectStdErr=false;
|
||||
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM
|
||||
Tesses::Framework::Streams::Stream* GetStdinStream(bool closeUnderlying=true);
|
||||
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM
|
||||
Tesses::Framework::Streams::Stream* GetStdoutStream(bool closeUnderlying=true);
|
||||
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM
|
||||
Tesses::Framework::Streams::Stream* GetStderrStream(bool closeUnderlying=true);
|
||||
|
||||
void CloseStdInNow();
|
||||
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM OBJECT
|
||||
|
||||
Tesses::Framework::Streams::Stream* GetStdinStream();
|
||||
|
||||
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM OBJECT
|
||||
Tesses::Framework::Streams::Stream* GetStdoutStream();
|
||||
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM OBJECT
|
||||
Tesses::Framework::Streams::Stream* GetStderrStream();
|
||||
|
||||
Process();
|
||||
Process(std::string name, std::vector<std::string> args,bool includeThisEnv=true);
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
#include "TextStreams/StdIOWriter.hpp"
|
||||
#include "TextStreams/StringReader.hpp"
|
||||
#include "TextStreams/StringWriter.hpp"
|
||||
#include "Text/StringConverter.hpp"
|
||||
#include "Threading/Thread.hpp"
|
||||
#include "Threading/Mutex.hpp"
|
||||
#include "Threading/ThreadPool.hpp"
|
||||
|
||||
19
include/TessesFramework/Text/StringConverter.hpp
Normal file
19
include/TessesFramework/Text/StringConverter.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
namespace Tesses::Framework::Text::StringConverter {
|
||||
class UTF8 {
|
||||
public:
|
||||
static void FromUTF16(std::basic_string<char>& utf8, const std::basic_string<char16_t>& utf16);
|
||||
static void FromUTF32(std::basic_string<char>& utf8, const std::basic_string<char32_t>& utf32);
|
||||
};
|
||||
class UTF16 {
|
||||
public:
|
||||
static void FromUTF8(std::basic_string<char16_t>& utf16, const std::basic_string<char>& utf8);
|
||||
static void FromUTF32(std::basic_string<char16_t>& utf16, const std::basic_string<char32_t>& utf32);
|
||||
};
|
||||
class UTF32 {
|
||||
public:
|
||||
static void FromUTF8(std::basic_string<char32_t>& utf32, const std::basic_string<char>& utf8);
|
||||
static void FromUTF16(std::basic_string<char32_t>& utf32, const std::basic_string<char16_t>& utf16);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user