JeVois  1.22
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Loading...
Searching...
No Matches
ParameterStringConversion.H File Reference
#include <string>
#include <iostream>
#include <sstream>
#include <vector>
#include <opencv2/core/core.hpp>
#include <imgui.h>
#include <jevois/Component/details/ParameterStringConversionImpl.H>
Include dependency graph for ParameterStringConversion.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  jevois
 Main namespace for all JeVois classes and functions.
 

Functions

template<typename T >
void jevois::paramValToString (T const &val, std::string &result)
 Machine-readable conversion of T to a string, for use in jevois::Parameter.
 
template<>
void jevois::paramValToString< unsigned char > (unsigned char const &val, std::string &result)
 Machine-readable conversion of T to a string, specialization to convert unsigned char to number, not character.
 
template<typename T >
void jevois::paramStringToVal (std::string const &valstring, T &result)
 Machine-readable conversion from string to T, for use in jevois::Parameter.
 
template<typename Q >
void jevois::paramValToString (std::vector< Q > const &val, std::string &result)
 Machine-readable output to a string, for use in jevois::Parameter: outputs [Element1, Element2, ...].
 
template<typename Q >
void jevois::paramStringToVal (std::string const &valstring, std::vector< Q > &result)
 Machine-readable input from a string, for use in jevois::Parameter: reads [Element1, Element2, ...].
 
template<typename F , typename S >
void jevois::paramValToString (std::pair< F, S > const &val, std::string &result)
 Machine-readable output to a string, for use in jevois::Parameter: outputs first second.
 
template<typename F , typename S >
void jevois::paramStringToVal (std::string const &valstring, std::pair< F, S > &result)
 Machine-readable input from a string, for use in jevois::Parameter: reads first second.
 
template<typename T >
void jevois::paramValToString (cv::Point_< T > const &val, std::string &result)
 Machine-readable output to a string, for use in jevois::Parameter: outputs x y.
 
template<typename T >
void jevois::paramStringToVal (std::string const &valstring, cv::Point_< T > &result)
 Machine-readable input from a string, for use in jevois::Parameter: reads x y.
 
template<typename T >
void jevois::paramValToString (cv::Size_< T > const &val, std::string &result)
 Machine-readable output to a string, for use in jevois::Parameter: outputs width height.
 
template<typename T >
void jevois::paramStringToVal (std::string const &valstring, cv::Size_< T > &result)
 Machine-readable input from a string, for use in jevois::Parameter: reads width height.
 
template<typename T >
void jevois::paramValToString (cv::Scalar_< T > const &val, std::string &result)
 Machine-readable output to a string, for use in jevois::Parameter: outputs r g b a.
 
template<typename T >
void jevois::paramStringToVal (std::string const &valstring, cv::Scalar_< T > &result)
 Machine-readable input from a string, for use in jevois::Parameter: reads r g b a or subsets.
 
template<>
void jevois::paramValToString< ImColor > (ImColor const &val, std::string &result)
 Machine-readable output to a string, for use in jevois::Parameter: outputs R G B A, each 0..255.
 
template<>
void jevois::paramStringToVal< ImColor > (std::string const &valstring, ImColor &result)
 Machine-readable input from a string, for use in jevois::Parameter: reads R G B A, each 0..255.
 
template<typename K , typename V >
void jevois::paramValToString (std::map< K, V > const &val, std::string &result)
 Machine-readable output to a string, for use in jevois::Parameter: outputs [Key1:Value1, Key2:Value2, ...].
 
template<typename K , typename V >
void jevois::paramStringToVal (std::string const &valstring, std::map< K, V > &result)
 Machine-readable input from a string, for use in jevois::Parameter: reads [Key1:Value1, Key2:Value2, ...].
 
template<>
void jevois::paramValToString< bool > (bool const &val, std::string &result)
 Machine-readable conversion of bool to a string, for use in jevois::Parameter.
 
template<>
void jevois::paramStringToVal< bool > (std::string const &valstring, bool &result)
 Machine-readable conversion from string to bool, for use in jevois::Parameter.
 
template<>
void jevois::paramValToString< std::string > (std::string const &val, std::string &result)
 Machine-readable conversion of string to a string, for use in jevois::Parameter.
 
template<>
void jevois::paramStringToVal< std::string > (std::string const &valstring, std::string &result)
 Machine-readable conversion from string to string, for use in jevois::Parameter.