framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
framework
serializable
mutators
stl_string.hpp
Go to the documentation of this file.
1
// Copyright (C) 2012 iwg molw5
2
// For conditions of distribution and use, see copyright notice in COPYING
3
13
#pragma once
14
15
#pragma once
16
17
#include <string>
18
19
#include <
framework/serializable/mutators/variable_container.hpp
>
20
#include <
framework/serializable/mutators/terminated_container.hpp
>
21
22
namespace
framework
23
{
24
namespace
serializable
25
{
29
template
<
typename
Size>
30
using
stl_string
=
variable_container <Size, char, std::string, true>
;
31
35
using
stl_null_string
=
terminated_container <char, '\0', std::string>
;
36
46
template
<
typename
Size>
47
using
stl_wstring
=
variable_container <Size, little_endian <wchar_t>
, std::wstring>;
48
58
using
stl_null_wstring
=
terminated_container <little_endian <wchar_t>
, L
'\0'
, std::wstring>;
59
63
template
<
64
typename
Size,
65
typename
CharT,
66
typename
Traits = std::char_traits <type_extractor <CharT>>,
67
typename
Allocator = std::allocator <type_extractor <CharT>>>
68
using
stl_basic_string
=
variable_container
<
69
Size,
70
type_extractor <CharT>
,
71
std::basic_string <type_extractor <CharT>, Traits, Allocator>>;
72
76
template
<
77
typename
CharT,
78
typename
Traits = std::char_traits <type_extractor <CharT>>,
79
typename
Allocator = std::allocator <type_extractor <CharT>>>
80
using
stl_null_basic_string
=
terminated_container
<
81
type_extractor <CharT>
,
82
static_cast <
type_extractor <CharT>
> (0),
83
std::basic_string <
type_extractor <CharT>
, Traits, Allocator>>;
84
}
85
}
Generated on Wed Apr 10 2013 20:49:42 for framework by
1.8.3.1-20130402