Kigs Framework  Doc version 0.8
Open source multi purpose Rapid Application Development framework
kstlsstream.h
1 #ifndef __KSTLSSTREAM_H__
2 #define __KSTLSSTREAM_H__
3 
4 #include "Platform/Core/CorePlatformDefines.h"
5 
6 #include "kstlstring.h"
7 #include <sstream>
8 
9 #ifndef _NO_KSTL_OVERLOADING_
10 
11 #include "CoreSTLAllocator.h"
12 
13 namespace kstl
14 {
15  //string stream io with simple strings
16  using stringbuf = std::basic_stringbuf<char, std::char_traits<char>, CoreSTLAllocator<char> > ;
17  using istringstream = std::basic_istringstream<char, std::char_traits<char>, CoreSTLAllocator<char> > ;
18  using ostringstream = std::basic_ostringstream<char, std::char_traits<char>, CoreSTLAllocator<char> > ;
19  using stringstream = std::basic_stringstream<char, std::char_traits<char>, CoreSTLAllocator<char> > ;
20 
21  //string stream io with wide (wchar_t) strings
22  using wstringbuf = std::basic_stringbuf<wchar_t, std::char_traits<wchar_t>, CoreSTLAllocator<wchar_t> > ;
23  using wistringstream = std::basic_istringstream<wchar_t, std::char_traits<wchar_t>, CoreSTLAllocator<wchar_t> > ;
24  using wostringstream = std::basic_ostringstream<wchar_t, std::char_traits<wchar_t>, CoreSTLAllocator<wchar_t> > ;
25  using wstringstream = std::basic_stringstream<wchar_t, std::char_traits<wchar_t>, CoreSTLAllocator<wchar_t> > ;
26 }
27 #else
28 
29 namespace kstl = std;
30 #endif
31 
32 #endif