Babel
Epitech's C++ VoIP project
Common
Network
OwnedMessage.hpp
Go to the documentation of this file.
1
//
2
// Created by cbihan on 03/10/2021.
3
//
4
5
#pragma once
6
7
8
#include <iostream>
9
#include "
Message.hpp
"
10
#include "
ITCPConnection.hpp
"
11
12
namespace
Babel
13
{
14
template
<
typename
T>
15
struct
OwnedMessage
16
{
17
std::shared_ptr<ITCPConnection<T>>
remote
=
nullptr
;
18
Message<T>
msg
;
19
20
// Again, a friendly string maker
21
friend
std::ostream&
operator<<
(std::ostream& os,
const
OwnedMessage<T>
&
msg
)
22
{
23
os <<
msg
.msg;
24
return
os;
25
}
26
};
27
}
Message.hpp
ITCPConnection.hpp
Babel::Message
Definition:
Message.hpp:46
Babel::OwnedMessage::remote
std::shared_ptr< ITCPConnection< T > > remote
Definition:
OwnedMessage.hpp:17
Babel
Definition:
IAudioManager.hpp:13
Babel::OwnedMessage::operator<<
friend std::ostream & operator<<(std::ostream &os, const OwnedMessage< T > &msg)
Definition:
OwnedMessage.hpp:21
Babel::OwnedMessage
Definition:
OwnedMessage.hpp:15
Babel::OwnedMessage::msg
Message< T > msg
Definition:
OwnedMessage.hpp:18
Generated by
1.8.17