BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
SniperJSON.h File Reference
#include <string>
#include <vector>
#include <map>
#include <sstream>
#include <typeinfo>
#include <exception>

Go to the source code of this file.

Classes

class  SniperJSON
 
struct  PreCXX11::true_value
 
struct  PreCXX11::false_value
 
struct  PreCXX11::is_same< typename, typename >
 
struct  PreCXX11::is_same< T, T >
 

Namespaces

namespace  PreCXX11
 

Functions

template<>
void SniperJSON::toCppVar< std::string > (std::string &var) const
 

Function Documentation

◆ SniperJSON::toCppVar< std::string >()

template<>
void SniperJSON::toCppVar< std::string > ( std::string & var) const
inline

Definition at line 189 of file SniperJSON.h.

190{
191 if (m_type == 3)
192 {
193 var = m_jvar.substr(1, m_jvar.size() - 2);
194 return;
195 }
196
197 throw Exception(std::string("cannot set <std::string> with '") + m_jvar + "'");
198}