hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCENodeOptions.cpp
Go to the documentation of this file.
1 #include "DRCENodeOptions.hpp"
2 
3 namespace HCE
4 {
5 namespace drce
6 {
7 //-----------------------------------------------------------------------------
8 DRCENodeOptions::DRCENodeOptions(const std::string& nodeName_, const std::string& homeDir_, const std::string& tasksDataDir_,
9  const std::string& tasksStatusDir_, const std::string& nodeHost_, const std::string& nodePort_)
10  : nodeName(nodeName_), homeDir(homeDir_), tasksDataDir(tasksDataDir_),
11  tasksStatusDir(tasksStatusDir_), nodeHost(nodeHost_), nodePort(nodePort_)
12 {
13 }
14 //-----------------------------------------------------------------------------
16 {
17  (*this) = rhs;
18 }
19 //-----------------------------------------------------------------------------
21 {
22  (*this) = std::forward<DRCENodeOptions>(rhs);
23 }
24 //-----------------------------------------------------------------------------
26 {
27  if (this != &rhs)
28  {
29  nodeName = rhs.getNodeName();
30  homeDir = rhs.getHomeDir();
33  nodeHost = rhs.getNodeHost();
34  nodePort = rhs.getNodePort();
35  }
36  return *this;
37 }
38 //-----------------------------------------------------------------------------
40 {
41  if (this != &rhs)
42  {
43  nodeName = std::move(rhs.getNodeName());
44  homeDir = std::move(rhs.getHomeDir());
45  tasksDataDir = std::move(rhs.getTasksDataDir());
46  tasksStatusDir = std::move(rhs.getTasksStatusDir());
47  nodeHost = std::move(rhs.getNodeHost());
48  nodePort = std::move(rhs.getNodePort());
49  }
50  return *this;
51 }
52 //-----------------------------------------------------------------------------
53 //-----------------------------------------------------------------------------
54 } // end namespace drce
55 } // end namespace HCE