iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ParameterStringConversion.H File Reference
#include <nrt/Core/Util/VectorUtils.H>
#include <string>
#include <iostream>
#include <sstream>
#include <vector>
#include <nrt/config.h>
#include <nrt/Core/Model/details/ParameterStringConversionImpl.H>

Author
Laurent Itti

License

// ////////////////////////////////////////////////////////////////////////
//              The iLab Neuromorphic Robotics Toolkit (NRT)             //
// Copyright 2010-2012 by the University of Southern California (USC)    //
//                          and the iLab at USC.                         //
//                                                                       //
//                iLab - University of Southern California               //
//                Hedco Neurociences Building, Room HNB-10               //
//                    Los Angeles, Ca 90089-2520 - USA                   //
//                                                                       //
//      See http://ilab.usc.edu for information about this project.      //
// ////////////////////////////////////////////////////////////////////////
// This file is part of The iLab Neuromorphic Robotics Toolkit.          //
//                                                                       //
// The iLab Neuromorphic Robotics Toolkit is free software: you can      //
// redistribute it and/or modify it under the terms of the GNU General   //
// Public License as published by the Free Software Foundation, either   //
// version 3 of the License, or (at your option) any later version.      //
//                                                                       //
// The iLab Neuromorphic Robotics Toolkit is distributed in the hope     //
// that it will be useful, but WITHOUT ANY WARRANTY; without even the    //
// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR       //
// PURPOSE.  See the GNU General Public License for more details.        //
//                                                                       //
// You should have received a copy of the GNU General Public License     //
// along with The iLab Neuromorphic Robotics Toolkit.  If not, see       //
// <http://www.gnu.org/licenses/>.                                       //
// ////////////////////////////////////////////////////////////////////////

Definition in file ParameterStringConversion.H.

Go to the source code of this file.

Namespaces

 nrt
 Reserved namespace for NRT core classes and functions.
 

Functions

template<class T >
void nrt::paramValToString (T const &val, std::string &result)
 Machine-readable conversion of T to a string, for use in nrt::Parameter. More...
 
template<class T >
void nrt::paramStringToVal (std::string const &valstring, T &result)
 Machine-readable conversion from string to T, for use in nrt::Parameter. More...
 
template<class Q >
void nrt::paramValToString (std::vector< Q > const &val, std::string &result)
 Machine-readable output to a string, for use in nrt::Parameter: outputs [Element1, Element2, ...]. More...
 
template<class Q >
void nrt::paramStringToVal (std::string const &valstring, std::vector< Q > &result)
 Machine-readable input from a string, for use in nrt::Parameter: reads [Element1, Element2, ...]. More...
 
template<class K , class V >
void nrt::paramValToString (std::map< K, V > const &val, std::string &result)
 Machine-readable output to a string, for use in nrt::Parameter: outputs [Key1:Value1, Key2:Value2, ...]. More...
 
template<class K , class V >
void nrt::paramStringToVal (std::string const &valstring, std::map< K, V > &result)
 Machine-readable input from a string, for use in nrt::Parameter: reads [Key1:Value1, Key2:Value2, ...]. More...
 
template<>
void nrt::paramValToString< bool > (bool const &val, std::string &result)
 Machine-readable conversion of bool to a string, for use in nrt::Parameter. More...
 
template<>
void nrt::paramStringToVal< bool > (std::string const &valstring, bool &result)
 Machine-readable conversion from string to bool, for use in nrt::Parameter. More...
 
template<>
void nrt::paramValToString< std::string > (std::string const &val, std::string &result)
 Machine-readable conversion of string to a string, for use in nrt::Parameter. More...
 
template<>
void nrt::paramStringToVal< std::string > (std::string const &valstring, std::string &result)
 Machine-readable conversion from string to string, for use in nrt::Parameter. More...