Source info() gives type, InfoVisitor gives instance info

Changed (back) to clean use of source->info() to return type dependent info string. The InfoVisitor gives unified detailed information about instance.
This commit is contained in:
Bruno Herbelin
2022-04-03 00:02:20 +02:00
parent 548aba5b7c
commit 49ebc17334
16 changed files with 52 additions and 83 deletions

View File

@@ -16,8 +16,8 @@ std::string uniqueName(const std::string &basename, std::list<std::string> exist
// get a transliteration to Latin of any string
std::string transliterate(const std::string &input);
// replaces spaces by underscores in a string
std::string unspace(const std::string &input);
// replaces spaces by delim in a string
std::string unspace(const std::string &input, char delim = '_');
// get a string to display memory size with unit KB, MB, GB, TB
std::string byte_to_string(long b);