2009-06-08 21:29:09 +02:00
|
|
|
/*
|
|
|
|
|
CommandBasic(Test) - checking simple ProcDispatcher command definition and execution
|
|
|
|
|
|
|
|
|
|
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 "lib/test/run.hpp"
|
2009-06-12 20:10:27 +02:00
|
|
|
#include "lib/test/test-helper.hpp"
|
2009-06-08 21:29:09 +02:00
|
|
|
//#include "proc/asset/media.hpp"
|
|
|
|
|
//#include "proc/mobject/session.hpp"
|
|
|
|
|
//#include "proc/mobject/session/edl.hpp"
|
|
|
|
|
//#include "proc/mobject/session/testclip.hpp"
|
2009-06-10 03:42:23 +02:00
|
|
|
//#include "proc/mobject/test-dummy-mobject.hpp"
|
|
|
|
|
#include "lib/p.hpp"
|
2009-06-08 21:29:09 +02:00
|
|
|
//#include "proc/mobject/placement.hpp"
|
|
|
|
|
//#include "proc/mobject/placement-index.hpp"
|
|
|
|
|
//#include "proc/mobject/explicitplacement.hpp"
|
|
|
|
|
#include "proc/control/command-def.hpp"
|
2009-06-10 05:00:01 +02:00
|
|
|
#include "lib/lumitime.hpp"
|
2009-06-08 21:29:09 +02:00
|
|
|
//#include "lib/util.hpp"
|
|
|
|
|
|
2009-06-10 05:00:01 +02:00
|
|
|
#include "lib/meta/typelist.hpp"
|
|
|
|
|
#include "lib/meta/typelistutil.hpp"
|
2009-06-14 05:38:35 +02:00
|
|
|
#include "lib/meta/generator.hpp"
|
2009-06-16 11:39:36 +02:00
|
|
|
#include "lib/meta/function.hpp"
|
2009-06-17 06:55:18 +02:00
|
|
|
#include "lib/meta/function-closure.hpp"
|
|
|
|
|
#include "lib/meta/tuple.hpp"
|
|
|
|
|
|
2009-06-10 05:00:01 +02:00
|
|
|
|
2009-06-10 03:42:23 +02:00
|
|
|
#include <tr1/functional>
|
2009-06-08 21:29:09 +02:00
|
|
|
//#include <boost/format.hpp>
|
2009-06-12 20:10:27 +02:00
|
|
|
#include <iostream>
|
2009-06-08 21:29:09 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
2009-06-10 05:00:01 +02:00
|
|
|
using std::tr1::bind;
|
|
|
|
|
//using std::tr1::placeholders::_1;
|
|
|
|
|
//using std::tr1::placeholders::_2;
|
2009-06-10 03:42:23 +02:00
|
|
|
using std::tr1::function;
|
2009-06-08 21:29:09 +02:00
|
|
|
//using boost::format;
|
2009-06-10 05:00:01 +02:00
|
|
|
using lumiera::Time;
|
2009-06-08 21:29:09 +02:00
|
|
|
//using util::contains;
|
|
|
|
|
using std::string;
|
2009-06-12 20:10:27 +02:00
|
|
|
using std::cout;
|
|
|
|
|
using std::endl;
|
2009-06-08 21:29:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace control {
|
|
|
|
|
namespace test {
|
|
|
|
|
|
2009-06-12 20:10:27 +02:00
|
|
|
using lib::test::showSizeof;
|
|
|
|
|
|
2009-06-08 21:29:09 +02:00
|
|
|
// using session::test::TestClip;
|
2009-06-10 05:00:01 +02:00
|
|
|
using lumiera::P;
|
2009-06-10 03:42:23 +02:00
|
|
|
|
2009-06-10 05:00:01 +02:00
|
|
|
using lumiera::typelist::FunctionSignature;
|
|
|
|
|
using lumiera::typelist::FunctionTypedef;
|
|
|
|
|
|
2009-06-14 05:38:35 +02:00
|
|
|
using lumiera::typelist::Types;
|
|
|
|
|
using lumiera::typelist::NullType;
|
2009-06-10 05:00:01 +02:00
|
|
|
using lumiera::typelist::Tuple;
|
|
|
|
|
using lumiera::typelist::Append;
|
2009-06-12 19:49:44 +02:00
|
|
|
using lumiera::typelist::SplitLast;
|
2009-06-10 03:42:23 +02:00
|
|
|
|
2009-06-15 03:47:05 +02:00
|
|
|
using lumiera::typelist::BuildTupleAccessor;
|
2009-06-08 21:29:09 +02:00
|
|
|
|
2009-06-12 19:49:44 +02:00
|
|
|
/**
|
|
|
|
|
* Type analysis helper template.
|
|
|
|
|
* Used for dissecting a given type signature to derive
|
|
|
|
|
* the related basic operation signature, the signature of a possible Undo-function
|
|
|
|
|
* and the signature necessary for capturing undo information. The implementation
|
|
|
|
|
* relies on re-binding an embedded type defining template, based on the actual
|
|
|
|
|
* case, as identified by the structure of the given parameter signature.
|
|
|
|
|
*/
|
|
|
|
|
template<typename SIG>
|
|
|
|
|
struct UndoSignature
|
2009-06-10 03:42:23 +02:00
|
|
|
{
|
2009-06-12 19:49:44 +02:00
|
|
|
private:
|
|
|
|
|
typedef typename FunctionSignature< function<SIG> >::Args Args;
|
|
|
|
|
typedef typename FunctionSignature< function<SIG> >::Ret Ret;
|
|
|
|
|
|
|
|
|
|
/** Case1: defining the Undo-Capture function */
|
|
|
|
|
template<typename RET, typename ARG>
|
|
|
|
|
struct Case
|
|
|
|
|
{
|
|
|
|
|
typedef RET Memento;
|
|
|
|
|
typedef typename Append<ARG, Memento>::List ExtendedArglist;
|
|
|
|
|
typedef typename Tuple<ExtendedArglist>::Type ExtendedArgs;
|
|
|
|
|
|
|
|
|
|
typedef typename FunctionTypedef<void, ARG>::Sig OperateSig;
|
|
|
|
|
typedef typename FunctionTypedef<Ret,ARG>::Sig CaptureSig;
|
|
|
|
|
typedef typename FunctionTypedef<void, ExtendedArgs>::Sig UndoOp_Sig;
|
|
|
|
|
};
|
|
|
|
|
/** Case2: defining the actual Undo function */
|
|
|
|
|
template<typename ARG>
|
|
|
|
|
struct Case<void,ARG>
|
|
|
|
|
{
|
|
|
|
|
typedef typename ARG::List Args;
|
|
|
|
|
|
|
|
|
|
typedef typename SplitLast<Args>::Type Memento;
|
2009-06-17 06:55:18 +02:00
|
|
|
typedef typename SplitLast<Args>::List OperationArglist;
|
2009-06-12 19:49:44 +02:00
|
|
|
typedef typename Tuple<OperationArglist>::Type OperationArgs;
|
|
|
|
|
|
|
|
|
|
typedef typename FunctionTypedef<void, OperationArgs>::Sig OperateSig;
|
|
|
|
|
typedef typename FunctionTypedef<Ret,OperationArgs>::Sig CaptureSig;
|
|
|
|
|
typedef typename FunctionTypedef<void, ARG>::Sig UndoOp_Sig;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
typedef typename Case<Ret,Args>::CaptureSig CaptureSig;
|
|
|
|
|
typedef typename Case<Ret,Args>::UndoOp_Sig UndoOp_Sig;
|
|
|
|
|
typedef typename Case<Ret,Args>::OperateSig OperateSig;
|
|
|
|
|
typedef typename Case<Ret,Args>::Memento Memento;
|
2009-06-10 03:42:23 +02:00
|
|
|
};
|
2009-06-12 20:21:46 +02:00
|
|
|
|
2009-06-10 03:42:23 +02:00
|
|
|
|
2009-06-10 05:00:01 +02:00
|
|
|
|
2009-06-14 05:38:35 +02:00
|
|
|
|
2009-06-15 03:47:05 +02:00
|
|
|
|
|
|
|
|
/** Interface */
|
|
|
|
|
class CmdClosure
|
2009-06-14 05:38:35 +02:00
|
|
|
{
|
2009-06-15 03:47:05 +02:00
|
|
|
public:
|
|
|
|
|
virtual ~CmdClosure() {}
|
2009-06-14 05:38:35 +02:00
|
|
|
};
|
|
|
|
|
|
2009-06-15 03:47:05 +02:00
|
|
|
|
2009-06-17 06:55:18 +02:00
|
|
|
template
|
|
|
|
|
< typename TY
|
|
|
|
|
, class BASE
|
|
|
|
|
, class TUP
|
|
|
|
|
, uint idx
|
|
|
|
|
>
|
2009-06-15 03:47:05 +02:00
|
|
|
struct ParamAccessor
|
2009-06-15 04:57:23 +02:00
|
|
|
: BASE
|
2009-06-14 05:38:35 +02:00
|
|
|
{
|
2009-06-15 04:57:23 +02:00
|
|
|
ParamAccessor(TUP& tuple)
|
|
|
|
|
: BASE(tuple)
|
|
|
|
|
{
|
|
|
|
|
cout << showSizeof(tuple.template getAt<idx>()) << endl;
|
|
|
|
|
}
|
2009-06-17 06:55:18 +02:00
|
|
|
|
|
|
|
|
////////////////////TODO the real access operations (e.g. for serialising) go here
|
2009-06-14 05:38:35 +02:00
|
|
|
};
|
2009-06-17 06:55:18 +02:00
|
|
|
|
|
|
|
|
template<class TUP>
|
|
|
|
|
struct ParamAccessor<NullType, TUP, TUP, 0>
|
|
|
|
|
: TUP
|
2009-06-14 05:38:35 +02:00
|
|
|
{
|
2009-06-15 04:57:23 +02:00
|
|
|
ParamAccessor(TUP& tuple)
|
2009-06-17 06:55:18 +02:00
|
|
|
: TUP(tuple)
|
2009-06-15 04:57:23 +02:00
|
|
|
{ }
|
2009-06-17 06:55:18 +02:00
|
|
|
|
|
|
|
|
////////////////////TODO the recursion-end of the access operations goes here
|
2009-06-14 05:38:35 +02:00
|
|
|
};
|
|
|
|
|
|
2009-06-17 06:55:18 +02:00
|
|
|
|
|
|
|
|
|
2009-06-15 03:47:05 +02:00
|
|
|
template<typename SIG>
|
|
|
|
|
class Closure
|
|
|
|
|
: public CmdClosure
|
2009-06-14 05:38:35 +02:00
|
|
|
{
|
2009-06-15 03:47:05 +02:00
|
|
|
typedef typename FunctionSignature< function<SIG> >::Args Args;
|
|
|
|
|
|
2009-06-15 04:57:23 +02:00
|
|
|
typedef Tuple<Args> ArgTuple;
|
2009-06-15 03:47:05 +02:00
|
|
|
|
|
|
|
|
typedef BuildTupleAccessor<Args,ParamAccessor> BuildAccessor;
|
|
|
|
|
typedef typename BuildAccessor::Accessor ParamStorageTuple;
|
|
|
|
|
|
|
|
|
|
ParamStorageTuple params_;
|
|
|
|
|
|
2009-06-15 04:57:23 +02:00
|
|
|
public:
|
2009-06-15 03:47:05 +02:00
|
|
|
Closure (ArgTuple& args)
|
|
|
|
|
: params_(BuildAccessor(args))
|
|
|
|
|
{ }
|
2009-06-14 05:38:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2009-06-12 20:21:46 +02:00
|
|
|
|
2009-06-15 03:47:05 +02:00
|
|
|
|
2009-06-12 20:21:46 +02:00
|
|
|
/**
|
|
|
|
|
* Helper class used solely for \em defining a Command-Object.
|
|
|
|
|
* This technique is known as "fluent API", see http://en.wikipedia.org/wiki/Fluent_interface
|
|
|
|
|
* The basic idea is for the user to create a disposable instance of this definition helper,
|
|
|
|
|
* only for calling a chain of definition functions, which internally build the actual Command object.
|
|
|
|
|
* Finally, the created Command object will be stored into a registry or handed over to the
|
|
|
|
|
* ProcDispatcher. To give an example:
|
|
|
|
|
* \code
|
|
|
|
|
* CommandDefinition ("test.command1")
|
|
|
|
|
* .operation (command1::operate) // provide the function to be executed as command
|
|
|
|
|
* .captureUndo (command1::capture) // provide the function capturing Undo state
|
2009-06-14 05:38:35 +02:00
|
|
|
* .undoOperation (command1::undoIt) // provide the function which might undo the command
|
2009-06-12 20:21:46 +02:00
|
|
|
* .bind (obj, randVal) // bind to the actual command parameters
|
|
|
|
|
* .executeSync(); // convenience call, forwarding the Command to dispatch.
|
|
|
|
|
* \endcode
|
|
|
|
|
*
|
|
|
|
|
* @todo of course, this needs to be extracted into command-definition.hpp
|
|
|
|
|
*/
|
2009-06-10 03:42:23 +02:00
|
|
|
class CommDef
|
|
|
|
|
{
|
|
|
|
|
Symbol id_;
|
|
|
|
|
|
|
|
|
|
template<typename SIG, typename MEM>
|
|
|
|
|
struct UndoDefinition
|
|
|
|
|
{
|
2009-06-12 20:10:27 +02:00
|
|
|
typedef typename FunctionSignature< function<SIG> >::Args BasicArgs;
|
|
|
|
|
typedef typename FunctionTypedef<MEM,BasicArgs>::Sig UndoCaptureSig;
|
|
|
|
|
|
|
|
|
|
UndoDefinition (function<UndoCaptureSig>& undoCapOperation)
|
|
|
|
|
{
|
|
|
|
|
cout << showSizeof(undoCapOperation) << endl;
|
|
|
|
|
UNIMPLEMENTED ("re-fetch command definition and augment it with Functor for capturing Undo information");
|
|
|
|
|
}
|
2009-06-10 05:00:01 +02:00
|
|
|
|
2009-06-12 19:49:44 +02:00
|
|
|
template<typename SIG2>
|
2009-06-12 20:10:27 +02:00
|
|
|
UndoDefinition&
|
2009-06-12 19:49:44 +02:00
|
|
|
undoOperation (SIG2& how_to_Undo)
|
2009-06-10 03:42:23 +02:00
|
|
|
{
|
2009-06-12 19:49:44 +02:00
|
|
|
typedef typename UndoSignature<SIG2>::UndoOp_Sig UndoSig;
|
|
|
|
|
|
2009-06-10 05:00:01 +02:00
|
|
|
function<UndoSig> opera3 (how_to_Undo);
|
2009-06-10 03:42:23 +02:00
|
|
|
|
2009-06-12 20:10:27 +02:00
|
|
|
UNIMPLEMENTED ("store actual Undo-Functor into the command definition held by the enclosing UndoDefinition instance");
|
|
|
|
|
return *this;
|
2009-06-10 03:42:23 +02:00
|
|
|
}
|
|
|
|
|
|
2009-06-15 04:57:23 +02:00
|
|
|
template
|
|
|
|
|
< typename T1
|
|
|
|
|
, typename T2
|
|
|
|
|
>
|
|
|
|
|
UndoDefinition& ///////TODO return here the completed Command
|
|
|
|
|
bind ( T1& p1
|
|
|
|
|
, T2& p2
|
|
|
|
|
)
|
|
|
|
|
{
|
|
|
|
|
typedef Types<T1,T2> ArgTypes;
|
|
|
|
|
Tuple<ArgTypes> params(p1,p2);
|
|
|
|
|
Closure<SIG> clo (params);
|
|
|
|
|
|
|
|
|
|
cout << showSizeof(clo) << endl;
|
|
|
|
|
UNIMPLEMENTED ("complete Command definition by closing all functions");
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2009-06-10 03:42:23 +02:00
|
|
|
};
|
|
|
|
|
|
2009-06-12 19:49:44 +02:00
|
|
|
/** type re-binding helper: create a suitable UndoDefinition type,
|
|
|
|
|
* based on the UndoSignature template instance given as parameter */
|
|
|
|
|
template<typename U_SIG>
|
|
|
|
|
struct BuildUndoDefType
|
|
|
|
|
{
|
|
|
|
|
typedef UndoDefinition<typename U_SIG::OperateSig, typename U_SIG::Memento> Type;
|
|
|
|
|
};
|
|
|
|
|
|
2009-06-10 03:42:23 +02:00
|
|
|
template<typename SIG>
|
|
|
|
|
struct BasicDefinition
|
|
|
|
|
{
|
2009-06-12 20:10:27 +02:00
|
|
|
BasicDefinition(function<SIG>& operation)
|
|
|
|
|
{
|
|
|
|
|
cout << showSizeof(operation) << endl;
|
|
|
|
|
UNIMPLEMENTED ("create new command object an store the operation functor");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2009-06-12 19:49:44 +02:00
|
|
|
template<typename SIG2>
|
|
|
|
|
typename BuildUndoDefType<UndoSignature<SIG2> >::Type
|
|
|
|
|
captureUndo (SIG2& how_to_capture_UndoState)
|
2009-06-10 03:42:23 +02:00
|
|
|
{
|
2009-06-12 19:49:44 +02:00
|
|
|
typedef typename UndoSignature<SIG2>::CaptureSig UndoCapSig;
|
2009-06-12 20:10:27 +02:00
|
|
|
typedef typename BuildUndoDefType<UndoSignature<SIG2> >::Type SpecificUndoDefinition;
|
2009-06-10 05:00:01 +02:00
|
|
|
|
|
|
|
|
function<UndoCapSig> opera2 (how_to_capture_UndoState);
|
2009-06-12 20:10:27 +02:00
|
|
|
return SpecificUndoDefinition (opera2);
|
2009-06-10 03:42:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CommDef (Symbol cmdID)
|
|
|
|
|
: id_(cmdID)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
template<typename SIG>
|
|
|
|
|
BasicDefinition<SIG>
|
2009-06-10 05:00:01 +02:00
|
|
|
operation (SIG& operation_to_define)
|
2009-06-10 03:42:23 +02:00
|
|
|
{
|
2009-06-10 05:00:01 +02:00
|
|
|
function<SIG> opera1 (operation_to_define);
|
2009-06-12 20:10:27 +02:00
|
|
|
return BasicDefinition<SIG>(opera1);
|
2009-06-10 03:42:23 +02:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/////////////////////////////
|
|
|
|
|
/////////////////////////////
|
2009-06-12 20:10:27 +02:00
|
|
|
|
|
|
|
|
//////////////////////////// start of the actual Test....
|
|
|
|
|
|
2009-06-10 03:42:23 +02:00
|
|
|
|
2009-06-09 09:05:19 +02:00
|
|
|
/*
|
|
|
|
|
bind: opFunc(a,b,c) -> op(void)
|
|
|
|
|
|
|
|
|
|
curry(opFunc) (a) (b) (c)
|
|
|
|
|
|
|
|
|
|
pAppl(func, x) -> func2 (b, c)
|
|
|
|
|
|
|
|
|
|
return bind( recursion(), param)
|
|
|
|
|
|
|
|
|
|
*/
|
2009-06-10 03:42:23 +02:00
|
|
|
namespace command1 {
|
|
|
|
|
void
|
2009-06-10 05:00:01 +02:00
|
|
|
operate (P<Time> dummyObj, int randVal)
|
2009-06-10 03:42:23 +02:00
|
|
|
{
|
2009-06-10 05:00:01 +02:00
|
|
|
*dummyObj += Time(randVal);
|
2009-06-10 03:42:23 +02:00
|
|
|
}
|
|
|
|
|
|
2009-06-10 05:00:01 +02:00
|
|
|
Time
|
|
|
|
|
capture (P<Time> dummyObj, int)
|
2009-06-10 03:42:23 +02:00
|
|
|
{
|
|
|
|
|
return *dummyObj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
2009-06-10 05:00:01 +02:00
|
|
|
undoIt (P<Time> dummyObj, int, Time oldVal)
|
2009-06-10 03:42:23 +02:00
|
|
|
{
|
|
|
|
|
*dummyObj = oldVal;
|
|
|
|
|
}
|
2009-06-08 21:29:09 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2009-06-10 03:42:23 +02:00
|
|
|
////////////////////////////////////////////TODO braindump
|
2009-06-08 21:29:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
|
* @test basic usage of the Proc-Layer command dispatch system.
|
|
|
|
|
* Shows how to define a simple command inline and another
|
|
|
|
|
* simple command as dedicated class. Finally triggers
|
|
|
|
|
* execution of both commands and verifies the command
|
|
|
|
|
* action has been invoked.
|
|
|
|
|
*
|
|
|
|
|
* @todo currently rather a scrapbook for trying out first ideas on the command system !!!!!!!!!!!!!!!
|
|
|
|
|
*
|
|
|
|
|
* @see control::Command
|
|
|
|
|
* @see control::CommandDef
|
|
|
|
|
* @see mobject::ProcDispatcher
|
|
|
|
|
*/
|
|
|
|
|
class CommandBasic_test : public Test
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
virtual void
|
|
|
|
|
run (Arg)
|
|
|
|
|
{
|
|
|
|
|
/////////////////////////////////TODO
|
2009-06-15 04:57:23 +02:00
|
|
|
defineCommands();
|
|
|
|
|
checkExecution();
|
2009-06-08 21:29:09 +02:00
|
|
|
}
|
|
|
|
|
|
2009-06-10 03:42:23 +02:00
|
|
|
void
|
|
|
|
|
defineCommands ()
|
|
|
|
|
{
|
2009-06-15 04:57:23 +02:00
|
|
|
P<Time> obj (new Time(5));
|
|
|
|
|
int randVal ((rand() % 10) - 5);
|
|
|
|
|
|
2009-06-10 03:42:23 +02:00
|
|
|
CommDef ("test.command1")
|
2009-06-10 05:00:01 +02:00
|
|
|
.operation (command1::operate)
|
2009-06-12 19:49:44 +02:00
|
|
|
.captureUndo (command1::capture)
|
2009-06-10 05:00:01 +02:00
|
|
|
.undoOperation (command1::undoIt)
|
2009-06-15 04:57:23 +02:00
|
|
|
.bind (obj, randVal)
|
2009-06-10 03:42:23 +02:00
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
|
2009-06-08 21:29:09 +02:00
|
|
|
void
|
|
|
|
|
checkExecution ()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Register this test class... */
|
|
|
|
|
LAUNCHER (CommandBasic_test, "unit controller");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}} // namespace control::test
|