Loading...
Searching...
No Matches
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}
PstString.h
PSTech::Utils::PstString
Definition PstString.h:18
PSTech::Utils
Definition PstArray.h:14
PSTech::Utils::operator<<
std::ostream & operator<<(std::ostream &stream, const PstString &string)
Definition PstStringIoStream.h:14
PSTech::Utils::operator>>
std::istream & operator>>(std::istream &stream, PstString &string)
Definition PstStringIoStream.h:20
PSTech
Definition ExportedTypeConversions.h:9