SUPER Space invader : Turbo edition DX - VS GOD 1.0.0
A simple space invader ripoff
ieditable.h
Go to the documentation of this file.
1
21#ifndef IEDITABLE_H
22#define IEDITABLE_H
23
24#include <iostream>
25
30namespace nsUtil
31{
32
38{
39
40public:
45 virtual ~IEditable() = default;
46
53 friend std::ostream& operator<<(std::ostream& os, const IEditable& Obj);
54
55protected:
61 virtual std::ostream& _Edit(std::ostream& os) const = 0;
62
63}; // class IEditable
64
65std::ostream& operator<<(std::ostream & os, const IEditable & Obj);
66
67} // namespace nsUtil
68
69#include "ieditable.hpp"
70
71#endif // IEDITABLE_H
72
Interface pour un objet injectable.
Definition: ieditable.h:38
virtual ~IEditable()=default
Destructeur pour la classe IEditable.
friend std::ostream & operator<<(std::ostream &os, const IEditable &Obj)
Surcharge de l'opérateur d'injection.
virtual std::ostream & _Edit(std::ostream &os) const =0
Fonction appelée pour injecter l'objet courant dans un flux.
Espace de nom pour les utilitaires lambda.
std::ostream & operator<<(std::ostream &os, const IEditable &Obj)
Definition: ieditable.hpp:20