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

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 173 of file Event/RawDataCnv/include/RawDataCnv/SniperJSON.h.

173 {
174 if ( m_type == 3 )
175 {
176 var = m_jvar.substr( 1, m_jvar.size() - 2 );
177 return;
178 }
179
180 throw Exception( std::string( "cannot set <std::string> with '" ) + m_jvar + "'" );
181}