00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef MOBJECT_SESSION_DEFSMANAGER_H
00025 #define MOBJECT_SESSION_DEFSMANAGER_H
00026
00027
00028 #include "common/p.hpp"
00029 #include "common/query.hpp"
00030
00031 #include <boost/scoped_ptr.hpp>
00032 #include <boost/utility.hpp>
00033
00034
00035
00036 namespace mobject {
00037 namespace session {
00038
00039
00040 using lumiera::P;
00041 using boost::scoped_ptr;
00042
00043 namespace impl { class DefsRegistry; }
00044
00045
00056 class DefsManager : private boost::noncopyable
00057 {
00058 scoped_ptr<impl::DefsRegistry> defsRegistry;
00059
00060 protected:
00061
00062 DefsManager () throw();
00063 friend class SessManagerImpl;
00064
00065 public:
00066 ~DefsManager ();
00067
00073 template<class TAR>
00074 P<TAR> operator() (const lumiera::Query<TAR>&);
00075
00076
00080 template<class TAR>
00081 P<TAR> search (const lumiera::Query<TAR>&);
00082
00088 template<class TAR>
00089 P<TAR> create (const lumiera::Query<TAR>&);
00090
00097 template<class TAR>
00098 bool define (const P<TAR>&, const lumiera::Query<TAR>&);
00099
00103 template<class TAR>
00104 bool forget (const P<TAR>&);
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115 };
00116
00117
00118
00119 }
00120
00121 }
00122 #endif