diff options
Diffstat (limited to 'graphics/asymptote/LspCpp/LibLsp/lsp/extention/sct/SCTConfig.h')
-rw-r--r-- | graphics/asymptote/LspCpp/LibLsp/lsp/extention/sct/SCTConfig.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/graphics/asymptote/LspCpp/LibLsp/lsp/extention/sct/SCTConfig.h b/graphics/asymptote/LspCpp/LibLsp/lsp/extention/sct/SCTConfig.h new file mode 100644 index 0000000000..7b41118c0a --- /dev/null +++ b/graphics/asymptote/LspCpp/LibLsp/lsp/extention/sct/SCTConfig.h @@ -0,0 +1,37 @@ +#pragma once +#include <string> +#include <vector> +#include <LibLsp/JsonRpc/serializer.h> +using namespace std; + + +struct TCP_option +{ + std::string host = "127.0.0.1"; + int port = 8889; + +}; +MAKE_REFLECT_STRUCT(TCP_option,host,port) + + +struct SCTConfig +{ + static SCTConfig* newInstance(const string& file_path,string& error); + std::string version; + std::string file_name; + + boost::optional<bool> start_by_jcide; + + boost::optional<TCP_option> tcp; + boost::optional<vector<string>> args; + + // internal using + bool broken = false; + std::string error; +}; + + +MAKE_REFLECT_STRUCT(SCTConfig, version,file_name, tcp, args, start_by_jcide); + + + |