DPsim
Loading...
Searching...
No Matches
DPsim::Utils Namespace Reference

Functions

String encodeXml (String &data)
 
template<typename T>
static CPS::String type (const CPS::String &stripPrefix="CPS::")
 
std::vector< std::string > tokenize (std::string s, char delimiter)
 
fs::path findFile (const fs::path &name, const fs::path &hint=fs::path(), const std::string &useEnv=std::string())
 
std::list< fs::path > findFiles (std::list< fs::path > filennames, const fs::path &hint, const std::string &useEnv=std::string())
 

Function Documentation

◆ encodeXml()

String DPsim::Utils::encodeXml ( String & data)

Definition at line 319 of file Utils.cpp.

◆ findFile()

fs::path DPsim::Utils::findFile ( const fs::path & name,
const fs::path & hint = fs::path(),
const std::string & useEnv = std::string() )

Definition at line 371 of file Utils.cpp.

◆ findFiles()

std::list< fs::path > DPsim::Utils::findFiles ( std::list< fs::path > filennames,
const fs::path & hint,
const std::string & useEnv = std::string() )

Definition at line 415 of file Utils.cpp.

◆ tokenize()

std::vector< std::string > DPsim::Utils::tokenize ( std::string s,
char delimiter )

Definition at line 348 of file Utils.cpp.

◆ type()

template<typename T>
static CPS::String DPsim::Utils::type ( const CPS::String & stripPrefix = "CPS::")
static

Definition at line 148 of file Utils.h.