move server Config out

server::Server::Config doesn't add anything vs.
server::Config
This commit is contained in:
Michael Davidsaver
2020-02-05 18:35:08 -08:00
parent 6c9b0b8800
commit 5815d595c4
7 changed files with 44 additions and 37 deletions
+4 -4
View File
@@ -54,9 +54,9 @@ void split_into(std::vector<std::string>& out, const char *inp)
}
}
Server::Config Server::Config::from_env()
Config Config::from_env()
{
Server::Config ret;
Config ret;
ret.udp_port = 5076;
if(const char *env = getenv("EPICS_PVAS_INTF_ADDR_LIST")) {
@@ -89,7 +89,7 @@ Server::Config Server::Config::from_env()
}
Server Server::Config::build()
Server Config::build()
{
Server ret(std::move(*this));
return ret;
@@ -192,7 +192,7 @@ void Server::listSource(std::vector<std::pair<std::string, int> > &names)
}
}
const Server::Config& Server::config() const
const Config& Server::config() const
{
if(!pvt)
throw std::logic_error("NULL Server");