#include <set>
#include <ostream>
#include <string>
#include "ticcutils/Timer.h"
Go to the source code of this file.
|
std::string | prefix (const std::string &path, const std::string &fn) |
|
std::set< std::string > | getFileNames (const std::string &dirName, const std::string &ext) |
|
std::string | check_server (const std::string &host, const std::string &port, const std::string &name="") |
|
◆ check_server()
std::string check_server |
( |
const std::string & |
host, |
|
|
const std::string & |
port, |
|
|
const std::string & |
name = "" |
|
) |
| |
check if a certain host:port is available for us
- Parameters
-
host | the host we check |
port | the port we want to access |
name | extra information (used in diagnostics only) |
- Returns
- "" on succes or an error message on failure
◆ getFileNames()
std::set<std::string> getFileNames |
( |
const std::string & |
dirName, |
|
|
const std::string & |
ext |
|
) |
| |
extract a (sorted) list of file-names matching an extension pattern
- Parameters
-
dirName | the search directory |
ext | the file extension we search |
- Returns
- a sorted list og file-names
◆ prefix()
std::string prefix |
( |
const std::string & |
path, |
|
|
const std::string & |
fn |
|
) |
| |
add a full path to the filename fn
- Parameters
-
path | the path to add |
fn | the filename to be prefixed |
- Returns
- a new path If fn already contains (relative) path information, it is left unchanged.