FACT++  1.0
std::string DatabaseName::uri ( ) const
inline

Definition at line 43 of file Database.h.

References server.

Referenced by StateMachineDrive< T, S >::ReadDatabase().

44  {
45  std::string rc;
46  if (!user.empty())
47  rc += user+"@";
48  rc += server;
49  if (port)
50  rc += ":"+std::to_string(port);
51  if (!db.empty())
52  rc += "/"+db;
53  return rc;
54  }
std::string user
Definition: Database.h:11
std::string db
Definition: Database.h:14
std::string server
Definition: Database.h:13

+ Here is the caller graph for this function: