top | up | prev | next

AddServerServerCommand Class

Definition at line 22 of ServerCommand.hpp

Constructors

AddServerServerCommand(const std::string& serverName_, int port_)

Member Functions

void Execute() override

Member Variables

int port
std::string serverName

Constructor Details

AddServerServerCommand Constructor

cmajor::build::AddServerServerCommand::AddServerServerCommand(const std::string& serverName_, int port_)

Definition at line 38 of ServerCommand.cpp :
 38 : serverName(serverName_)port(port_)
 39 {
 40 }


Declaration at line 25 of ServerCommand.hpp


Member Function Details

Execute Member Function

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

Definition at line 42 of ServerCommand.cpp :
 43 {
 44     bool force = false;
 45     if (GetBuildOption(BuildOptions::force))
 46     {
 47         force = true;
 48     }
 49     ServerConfig::Instance().Add(serverNamestd::string()portstd::string()forcetruetrue);
 50     LogMessage(-1"server '" + serverName + "' added");
 51 }


Declaration at line 26 of ServerCommand.hpp

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

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


top | up | prev | next