Returns a string representation of this cluster connection record. This will include the type of record and the filename of the cluster file.
| 97 | // Returns a string representation of this cluster connection record. This will include the type of record and the |
| 98 | // filename of the cluster file. |
| 99 | std::string ClusterConnectionFile::toString() const { |
| 100 | // This is a fairly naive attempt to generate a URI-like string. It will not account for characters like spaces, it |
| 101 | // may use backslashes in windows paths, etc. |
| 102 | // SOMEDAY: we should encode this string as a proper URI. |
| 103 | return "file://" + filename; |
| 104 | } |
| 105 | |
| 106 | // returns <resolved name, was default file> |
| 107 | std::pair<std::string, bool> ClusterConnectionFile::lookupClusterFileName(std::string const& filename) { |