#include <string>
#include <vector>
#include <map>
#include <sstream>
#include <typeinfo>
#include <exception>
Go to the source code of this file.
◆ 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}