2007-08-08 04:50:02 +02:00
|
|
|
/*
|
|
|
|
|
Session - holds the complete session to be edited by the user
|
|
|
|
|
|
|
|
|
|
Copyright (C) CinelerraCV
|
2007-11-27 03:19:35 +01:00
|
|
|
2007, Hermann Vosseler <Ichthyostega@web.de>
|
2007-08-08 04:50:02 +02:00
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2 of the
|
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
* *****************************************************/
|
|
|
|
|
|
|
|
|
|
|
2007-09-27 23:26:54 +02:00
|
|
|
/** @file session.cpp
|
|
|
|
|
** Actual connection between the Session interface and its Implementation.
|
|
|
|
|
** Holds the storage for the SessionManager implementation (singleton)
|
|
|
|
|
**
|
|
|
|
|
** @see session::SessionImpl
|
|
|
|
|
** @see session::SessionManagerImpl
|
|
|
|
|
**
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "proc/mobject/session.hpp"
|
|
|
|
|
#include "proc/mobject/session/sessionimpl.hpp"
|
|
|
|
|
|
|
|
|
|
#include "common/singleton.hpp"
|
2007-08-08 04:50:02 +02:00
|
|
|
|
2007-09-27 04:45:06 +02:00
|
|
|
|
|
|
|
|
using cinelerra::Singleton;
|
2007-09-27 23:26:54 +02:00
|
|
|
using mobject::session::SessManager;
|
|
|
|
|
using mobject::session::SessManagerImpl;
|
2007-09-27 04:45:06 +02:00
|
|
|
|
2007-08-09 18:51:47 +02:00
|
|
|
namespace mobject
|
2007-08-08 04:50:02 +02:00
|
|
|
{
|
2007-08-09 18:51:47 +02:00
|
|
|
|
2007-09-27 23:26:54 +02:00
|
|
|
/** the sole acces point for all client code to the system-wide
|
|
|
|
|
* "current session". Implemented as smart pointer to singleton
|
|
|
|
|
* implementation object, where the smart pointer is actually
|
|
|
|
|
* the SessionManager (which is singleton as well...).
|
|
|
|
|
*
|
|
|
|
|
* Consequently, if you want to talk to the <i>session manager,</i>
|
|
|
|
|
* you use dot-notation, while you access the <i>session object</i>
|
|
|
|
|
* via arrow notaion (e.g. \code Session::current->getFixture() )
|
|
|
|
|
*/
|
|
|
|
|
SessManager& Session::current = Singleton<SessManagerImpl>()();
|
|
|
|
|
|
2007-09-27 04:45:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-09-27 23:26:54 +02:00
|
|
|
Session::Session () throw() { }
|
|
|
|
|
Session::~Session () { }
|
2007-08-09 18:51:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace mobject
|