MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMcpSettings.h
Go to the documentation of this file.
1#pragma once
2
3#include "exports.h"
4
5#include <filesystem>
6#include <string>
7#include <vector>
8
10
12{
13
17{
18 int port = 0;
19 std::filesystem::path dumpFilePath;
20};
21
28[[nodiscard]] MRVIEWER_API CmdLineOverrides parseCmdLineOverrides( const std::vector<std::string>& commandArgs );
29
32[[nodiscard]] MRVIEWER_API int getPort();
33
36MRVIEWER_API void setPort( int port );
37
39[[nodiscard]] MRVIEWER_API bool getEnableByDefault();
40
42MRVIEWER_API void setEnableByDefault( bool enable );
43
46MRVIEWER_API void applyToServer();
47
50[[nodiscard]] MRVIEWER_API bool isPortLockedFromCmdLine();
51
52}
Those functions act on the default MCP settings in the config file.
Definition MRMcpSettings.h:12
bool isPortLockedFromCmdLine()
bool getEnableByDefault()
Returns whether the MCP server should start on program startup, according to the config file.
void applyToServer()
CmdLineOverrides parseCmdLineOverrides(const std::vector< std::string > &commandArgs)
void setEnableByDefault(bool enable)
Sets whether the MCP server should start on program startup, in the config file.
void setPort(int port)
Definition MRMcpSettings.h:17
std::filesystem::path dumpFilePath
-mcpDumpFile <path>. Empty means no dump.
Definition MRMcpSettings.h:19
int port
-mcpPort N. <= 0 means no override.
Definition MRMcpSettings.h:18