Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_core
Basics
StringIO.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <initializer_list>
4
#include <cstring>
5
#include <string>
6
#include <optional>
7
#include <limits>
8
9
namespace
iv
10
{
11
12
class
Context;
13
14
//------------ declaration -----------------------
15
template
<
typename
_Tp,
typename
Enabled=
void
>
16
struct
StringIO
;
17
18
//--------
19
template
<
class
Type >
20
Type
StringIO_Read
(
const
char
* source,
Context
const
* context )
21
{
22
return
StringIO< Type >
().
Read
( source, context );
23
}
24
25
inline
std::string
StringIO_Write
(
char
const
*
const
& value,
Context
const
* context )
26
{
27
return
value;
28
}
29
30
template
<
class
Type >
31
std::string
StringIO_Write
( Type
const
& value,
Context
const
* context )
32
{
33
return
StringIO< Type >
().
Write
( value, context );
34
}
35
36
}