Commit b8ed050e authored by Marco De Marco's avatar Marco De Marco
Browse files

Session classes created

parent 9604b946
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
#include <PlainServer.h>
#include <PlainSession.h>

namespace MetadataExporter_ns
{

src/PlainSession.cpp

0 → 100644
+33 −0
Original line number Diff line number Diff line
#include <PlainSession.h>

namespace MetadataExporter_ns
{

//==============================================================================
//      PlainSession::PlainSession()
//==============================================================================
PlainSession::PlainSession(Tango::DeviceImpl* deviceImpl_p) : 
    Session::Session(deviceImpl_p)
{
    DEBUG_STREAM << "PlainSession::PlainSession()" << endl;
}

//==============================================================================
//      PlainSession::~PlainSession()
//==============================================================================
PlainSession::~PlainSession()
{
    DEBUG_STREAM << "PlainSession::~PlainSession()" << endl;
}

//==============================================================================
//      PlainSession::~PlainSession()
//==============================================================================
Session::SP PlainSession::create(Tango::DeviceImpl* deviceImpl_p)
{
    Session::SP s_sp(new PlainSession(deviceImpl_p), PlainSession::Deleter());
    
    return s_sp;
}

}   //namespace
 No newline at end of file

src/PlainSession.h

0 → 100644
+47 −0
Original line number Diff line number Diff line
#ifndef PLAINSESSION_H
#define	PLAINSESSION_H

#include <Session.h>

#include <tango.h>

namespace MetadataExporter_ns
{

class PlainSession : public Session
{    
//------------------------------------------------------------------------------
//	[Protected] Constructor destructor deleter
//------------------------------------------------------------------------------
    PlainSession(Tango::DeviceImpl*);
    
    virtual ~PlainSession();
    
    class Deleter;
    friend Deleter;
    class Deleter
    {
	public:
		void operator()(PlainSession* d) { delete d; }        
    };    

public:    
//------------------------------------------------------------------------------
//	[Public] Users methods
//------------------------------------------------------------------------------
    static Session::SP create(Tango::DeviceImpl*);

protected:
//------------------------------------------------------------------------------
//  [Protected] Utilities methods
//------------------------------------------------------------------------------    
    
//------------------------------------------------------------------------------
//	[Protected] Class variables
//------------------------------------------------------------------------------
};

}   //End of namespace

#endif	/* PLAINSESSION_H */
+2 −1
Original line number Diff line number Diff line
#include <SSLServer.h>
#include <SSLSession.h>

namespace MetadataExporter_ns
{

src/SSLSession.cpp

0 → 100644
+33 −0
Original line number Diff line number Diff line
#include <SSLSession.h>

namespace MetadataExporter_ns
{

//==============================================================================
//      SSLSession::SSLSession()
//==============================================================================
SSLSession::SSLSession(Tango::DeviceImpl* deviceImpl_p) : 
    Session::Session(deviceImpl_p)
{
    DEBUG_STREAM << "SSLSession::SSLSession()" << endl;
}

//==============================================================================
//      SSLSession::~SSLSession()
//==============================================================================
SSLSession::~SSLSession()
{
    DEBUG_STREAM << "SSLSession::~SSLSession()" << endl;
}

//==============================================================================
//      SSLSession::~SSLSession()
//==============================================================================
Session::SP SSLSession::create(Tango::DeviceImpl* deviceImpl_p)
{
    Session::SP s_sp(new SSLSession(deviceImpl_p), SSLSession::Deleter());
    
    return s_sp;
}

}   //namespace
Loading