|
#pragma once
#include "SmartPtr.h"
#include "Factory.h"
/************* Serializae - deserialize **********/
//do smart pointer serialization in term of multiple hineritance dom pointers
namespace GE_{ namespace Safe{
template <class T>
CArchive& operator<< (CArchive& ar, const _PtrSmart<T>& P)
{
SavePtr<T>(ar, P);
return ar;
}
template <class T>
CArchive& operator>> (CArchive& ar, _PtrSmart<T>& P)
{
T* pT;
LoadPtr<T>(ar, pT);
P.Set(pT);
return ar;
}
}}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Born and living in Milan (Italy), I'm an engineer in electronics actually working in the ICT department of an important oil/gas & energy company as responsible for planning and engineering of ICT infrastructures.
Interested in programming since the '70s, today I still define architectures for the ICT, deploying dedicated specific client application for engineering purposes, working with C++, MFC, STL, and recently also C# and D.