Seeed Grove ++  v0.0.1-2386
Linux C++ Library For Seeed Grove Devices
sg_base.hpp File Reference
#include <string>
#include "sg_version.hpp"
Include dependency graph for sg_base.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 SG
 

Functions

std::string SG::get_build_timestamp (void)
 Format the compiler macros __DATE__ and __TIME__ to make a readable timestamp showing when the SG++ library was last built. More...
 
std::string SG::get_version (void)
 Get the version string. More...
 
std::string SG::demangle (const std::string &name)
 Demangle the C++ function or variable name. Sometimes useful in error messages. More...
 
bool SG::file_exists (const std::string &filename)
 Determine if the specified file exists. More...
 
bool SG::file_does_not_exist (const std::string &filename)
 Determine if the specified file does not exist. More...
 
std::string SG::read_file (const std::string &filename)
 Read the specified file into a single std::string. More...
 
std::string SG::trim (const std::string &str)
 Trim whitespace and return a new string, leaving the original string unchanged. More...
 
std::string & SG::trim (std::string &str)
 Trim whitespace from the provided string. Modifies the original string. More...