| PST SDK 6.0.0.0-272350a

PstStringIoStream.h
Go to the documentation of this file.
1 // Copyright PS-Tech B.V. All Rights Reserved.
2
3 #pragma once
4
5 #include "PstString.h"
6
7 #include <iostream>
8 #include <string>
9
10 namespace PSTech
11 {
12 namespace Utils
13 {
14 inline std::ostream& operator<<(std::ostream& stream, const PstString& string)
15 {
16 stream << string.c_str();
17 return stream;
18 }
19
20 inline std::istream& operator>>(std::istream& stream, PstString& string)
21 {
22 std::string temp;
23 stream >> temp;
24 string = temp.c_str();
25 return stream;
26 }
27 }
28 }
PSTech
Definition: ExportedTypeConversions.h:8
PSTech::Utils::operator<<
std::ostream & operator<<(std::ostream &stream, const PstString &string)
Definition: PstStringIoStream.h:14
PstString.h
PSTech::Utils::PstString
Definition: PstString.h:17
PSTech::Utils::operator>>
std::istream & operator>>(std::istream &stream, PstString &string)
Definition: PstStringIoStream.h:20