2009-10-24 00:23:22 +02:00
|
|
|
/*
|
|
|
|
|
QueryResolver - interface for discovering contents of a scope
|
|
|
|
|
|
|
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2009, Hermann Vosseler <Ichthyostega@web.de>
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
* *****************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "proc/mobject/session/query-resolver.hpp"
|
|
|
|
|
//#include "proc/mobject/session/track.hpp"
|
|
|
|
|
//#include "proc/mobject/placement.hpp"
|
|
|
|
|
//#include "proc/mobject/session/mobjectfactory.hpp"
|
|
|
|
|
//#include "proc/asset/track.hpp"
|
|
|
|
|
|
|
|
|
|
namespace mobject {
|
|
|
|
|
namespace session {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-25 21:39:02 +01:00
|
|
|
/* generate vtables here */
|
|
|
|
|
|
|
|
|
|
Goal::~Goal() { }
|
|
|
|
|
|
2009-10-24 00:23:22 +02:00
|
|
|
QueryResolver::~QueryResolver() { }
|
|
|
|
|
|
2009-10-29 04:32:00 +01:00
|
|
|
Resolution::~Resolution() { }
|
2009-10-25 21:39:02 +01:00
|
|
|
|
|
|
|
|
|
2009-10-26 01:39:25 +01:00
|
|
|
struct QueryDispatcher
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
};
|
2009-10-24 00:23:22 +02:00
|
|
|
|
|
|
|
|
|
2009-10-29 04:32:00 +01:00
|
|
|
QueryResolver::QueryResolver ()
|
|
|
|
|
: dispatcher_(new QueryDispatcher)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
|
2009-10-24 00:23:22 +02:00
|
|
|
/** TODO??? */
|
2009-10-26 01:39:25 +01:00
|
|
|
PReso
|
2009-10-24 00:23:22 +02:00
|
|
|
QueryResolver::issue (Goal& query)
|
|
|
|
|
{
|
|
|
|
|
if (!canHandleQuery (query.getQID()))
|
|
|
|
|
throw lumiera::error::Invalid ("unable to resolve this kind of query"); ////TICKET #197
|
|
|
|
|
|
|
|
|
|
UNIMPLEMENTED ("dispatch-mechanism for re-discovering specific type-context");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}} // namespace mobject::session
|