top | up | prev | next

AddServerClientCommand Class

Definition at line 56 of ClientCommand.hpp

Constructors

AddServerClientCommand(const std::string& serverName_, const std::string& host_, int port_, const std::string& defaultToolChain_)

Member Functions

void Execute() override

Member Variables

std::string defaultToolChain
std::string host
int port
std::string serverName

Constructor Details

AddServerClientCommand Constructor

cmajor::build::AddServerClientCommand::AddServerClientCommand(const std::string& serverName_, const std::string& host_, int port_, const std::string& defaultToolChain_)

Definition at line 122 of ClientCommand.cpp :
122 :
123 serverName(serverName_)host(host_)port(port_)defaultToolChain(defaultToolChain_)
124 {
125 }


Declaration at line 59 of ClientCommand.hpp


Member Function Details

Execute Member Function

void cmajor::build::AddServerClientCommand::Execute() override

Definition at line 127 of ClientCommand.cpp :
128 {
129     bool force = false;
130     if (GetBuildOption(BuildOptions::force))
131     {
132         force = true;
133     }
134     ServerConfig::Instance().Add(serverNamehostportdefaultToolChainforcetruetrue);
135     LogMessage(-1"server '" + serverName + "' added");
136 }


Declaration at line 60 of ClientCommand.hpp

Base class overridden functions: cmajor::build::ClientCommand::Execute

Calls: cmajor::build::ServerConfig::Add , cmajor::build::ServerConfig::Instance


top | up | prev | next