Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
Types.hh File Reference
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <gz/utils/NeverDestroyed.hh>
#include "sdf/config.hh"
#include "sdf/system_util.hh"
#include "sdf/Error.hh"

Go to the source code of this file.

Classes

class  sdf::SDF_VERSION_NAMESPACE::Time
 A Time class, can be used to hold wall- or sim-time. More...
 

Namespaces

namespace  sdf
 namespace for Simulation Description Format parser
 
namespace  sdf::SDF_VERSION_NAMESPACE
 

Typedefs

using sdf::SDF_VERSION_NAMESPACE::Errors = std::vector< Error >
 A vector of Error.
 

Functions

template<typename T >
bool sdf::SDF_VERSION_NAMESPACE::equal (const T &_a, const T &_b, const T &_epsilon=1e-6f)
 check if two values are equal, within a tolerance
 
GZ_SDFORMAT_VISIBLE std::string sdf::SDF_VERSION_NAMESPACE::JoinName (const std::string &_scopeName, const std::string &_localName)
 Join two strings with the '::' delimiter.
 
std::string GZ_SDFORMAT_VISIBLE sdf::SDF_VERSION_NAMESPACE::lowercase (const std::string &_in)
 Transforms a string to its lowercase equivalent.
 
GZ_SDFORMAT_VISIBLE std::ostream & sdf::SDF_VERSION_NAMESPACE::operator<< (std::ostream &_out, const sdf::Errors &_errs)
 Output operator for a collection of errors.
 
GZ_SDFORMAT_VISIBLE std::vector< std::string > sdf::SDF_VERSION_NAMESPACE::split (const std::string &_str, const std::string &_splitter)
 Split a string using the delimiter in splitter.
 
GZ_SDFORMAT_VISIBLE std::pair< std::string, std::string > sdf::SDF_VERSION_NAMESPACE::SplitName (const std::string &_absoluteName)
 Split a name into a two strings based on the '::' delimeter.
 
GZ_SDFORMAT_VISIBLE std::string sdf::SDF_VERSION_NAMESPACE::trim (const char *_in)
 Trim leading and trailing whitespace from a string.
 
GZ_SDFORMAT_VISIBLE std::string sdf::SDF_VERSION_NAMESPACE::trim (const std::string &_in)
 Trim leading and trailing whitespace from a string.
 

Variables

constexpr std::string_view sdf::SDF_VERSION_NAMESPACE::kScopeDelimiter {"::"}
 
constexpr char sdf::SDF_VERSION_NAMESPACE::kSdfStringSource [] = "<data-string>"
 The source path replacement if it was parsed from a string, instead of a file.
 
constexpr char sdf::SDF_VERSION_NAMESPACE::kUrdfStringSource [] = "<urdf-string>"
 The source path replacement if the urdf was parsed from a string, instead of a file.