|
| const std::string | DCMTree_Utils::configInstallPath () |
| | Returns the path where the current application is installed.
|
| |
| const std::list< std::string > | DCMTree_Utils::configLibraryPathList (const std::string &installPath) |
| | Returns a list of paths to search for dynamic libraries.
|
| |
| bool | DCMTree_Utils::configLoadDll (std::string dllPath) |
| | Loads a dynamic library from the specified path.
|
| |
| DCMTREE_EXPORT void | DCMTree_Utils::configLoadLibraries (LoadLibraryDelegate *delegate=nullptr) |
| | Loads dynamic libraries and searches in file DCMTree.cfg for their names.
|
| |
| DCMTREE_EXPORT StringList | DCMTree_Utils::split (const std::string &tosplit, char c, bool skipempties=false) |
| | Splits the given string at each c.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::toString (const DCMTree::Date &date) |
| | Converts a date to a string.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::toString (const DCMTree::Time &time) |
| | Converts a time to a string.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::toString (const DCMTree::DateTime &datetime) |
| | Converts a datetime to a string.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::toString (int val) |
| | Convert an int val to a string.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::toString (unsigned int val) |
| | Converts an unsigned int val to a string.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::toString (float val) |
| | Converts a float val to a string.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::toString (double val) |
| | Converts a double val to a string.
|
| |
| DCMTREE_EXPORT DCMTree::Date | DCMTree_Utils::toDate (const std::string &str) |
| | Converts a string str to a date.
|
| |
| DCMTREE_EXPORT DCMTree::Time | DCMTree_Utils::toTime (const std::string &str) |
| | Converts a string str to time.
|
| |
| DCMTREE_EXPORT DCMTree::DateTime | DCMTree_Utils::toDateTime (const std::string &str) |
| | Converts a string str to datetime.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::digitsOnly (const std::string &str, bool allowhex=false) |
| | Removes all non-digits from the given strings.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::afterFractionPart (const std::string &str) |
| | Returns the part of the string after the right-most dot.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::beforeFractionPart (const std::string &str) |
| | Returns the part of the string before the right-most dot.
|
| |
| DCMTREE_EXPORT int | DCMTree_Utils::hexToInt (const std::string &str) |
| | Converts a hex-string str to int.
|
| |
| DCMTREE_EXPORT unsigned int | DCMTree_Utils::hexToUInt (const std::string &str) |
| | Converts a hex-string str to unsigned int.
|
| |
| DCMTREE_EXPORT int | DCMTree_Utils::toInt (const std::string &str) |
| | Converts a string str to int.
|
| |
| DCMTREE_EXPORT unsigned int | DCMTree_Utils::toUInt (const std::string &str) |
| | Converts a string str to unsigned int.
|
| |
| DCMTREE_EXPORT double | DCMTree_Utils::toDouble (const std::string &str) |
| | Converts a string str to double.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::toString (const DCMTree::Vr vr) |
| | Converts a VR vr to a string.
|
| |
| DCMTREE_EXPORT DCMTree::Vr | DCMTree_Utils::toVr (const std::string &vrString) |
| | Converts a string str to a VR.
|
| |
| DCMTREE_EXPORT void | DCMTree_Utils::toStream (std::ostream &out, const std::string &val) |
| | Helper functions to write data into a stream.
|
| |
| DCMTREE_EXPORT void | DCMTree_Utils::toStream (std::ostream &out, const int &val) |
| |
| DCMTREE_EXPORT void | DCMTree_Utils::toStream (std::ostream &out, const unsigned int &val) |
| |
| DCMTREE_EXPORT void | DCMTree_Utils::toStream (std::ostream &out, const bool &val) |
| |
| DCMTREE_EXPORT void | DCMTree_Utils::toStream (std::ostream &out, const unsigned char *ptr, unsigned int size) |
| |
| DCMTREE_EXPORT void | DCMTree_Utils::fromStream (std::istream &in, std::string &val, size_t maxSize=0) |
| | Helper functions to read data out of a stream.
|
| |
| DCMTREE_EXPORT void | DCMTree_Utils::fromStream (std::istream &in, int &val) |
| |
| DCMTREE_EXPORT void | DCMTree_Utils::fromStream (std::istream &in, unsigned int &val) |
| |
| DCMTREE_EXPORT void | DCMTree_Utils::fromStream (std::istream &in, bool &val) |
| |
| DCMTREE_EXPORT void | DCMTree_Utils::fromStream (std::istream &in, unsigned char *ptr, unsigned int size) |
| |
| DCMTREE_EXPORT void | DCMTree_Utils::setLoggingHandler (LoggingHandler handler) |
| | Sets a callback for logging purposes.
|
| |
| DCMTREE_EXPORT LoggingHandler | DCMTree_Utils::getLoggingHandler () |
| | Returns the currently set logging callback.
|
| |
| DCMTREE_EXPORT void | DCMTree_Utils::logMessage (std::string message, int errorCode=0) |
| | Logs a message using the provided callback, if any.
|
| |
| DCMTREE_EXPORT std::string | DCMTree_Utils::condGetNameForTag (DCMTree::TagId tag, const std::string &defaultName) |
| |