34 template <
class InputIterator>
35 int assign(
const InputIterator& _begin,
const InputIterator& _end);
55 static void make(
const std::string& _filepath,
const configRecords_t& _records,
const std::string& _bash =
"");
56 static void make(std::ostream& _stream,
const configRecords_t& _records,
const std::string& _bash =
"");
57 static void make(
const std::string& _filepath,
58 const std::vector<std::string>& _hosts,
59 const std::string& _sshOptions =
"",
60 const std::string& _wrkDir =
"/tmp/wn_dds",
62 const std::string& _bash =
"");
63 static void make(std::ostream& _stream,
64 const std::vector<std::string>& _hosts,
65 const std::string& _sshOptions =
"",
66 const std::string& _wrkDir =
"/tmp/wn_dds",
68 const std::string& _bash =
"");
75 std::shared_ptr<SImpl> m_impl;
int assign(const InputIterator &_begin, const InputIterator &_end)
Definition: SSHConfigFile.cpp:211
std::vector< configRecord_t > configRecords_t
Definition: SSHConfigFile.h:46
std::shared_ptr< SConfigRecord > configRecord_t
Definition: SSHConfigFile.h:45
bool operator==(const SConfigRecord &_rec) const
Definition: SSHConfigFile.cpp:246
const configRecords_t & getRecords()
Definition: SSHConfigFile.cpp:296
std::string m_addr
Definition: SSHConfigFile.h:39
std::string m_sshOptions
Definition: SSHConfigFile.h:40
const std::string & getBash()
Definition: SSHConfigFile.cpp:301
Definition: SSHConfigFile.cpp:29
The class represents a single record of a dds-ssh configuration file.
Definition: SSHConfigFile.h:32
Miscellaneous functions and helpers are located here.
Definition: AgentConnectionManager.h:13
std::string m_id
Definition: SSHConfigFile.h:38
size_t m_nSlots
Definition: SSHConfigFile.h:42
CSSHConfigFile(const std::string &_filepath)
Definition: SSHConfigFile.cpp:254
static void make(const std::string &_filepath, const configRecords_t &_records, const std::string &_bash="")
Definition: SSHConfigFile.cpp:266
std::string m_wrkDir
Definition: SSHConfigFile.h:41
Reads dds-ssh configuration file either from a text file or stream.
Definition: SSHConfigFile.h:49