31#ifndef MOBJECT_TEST_DUMMY_MOBJECT_H
32#define MOBJECT_TEST_DUMMY_MOBJECT_H
75 virtual bool isValid()
const {
return true;}
77 virtual operator string()
const {
return display(
"DummyMO"); }
84 static _Fmt fmt{
"%s(ID=%03d)"};
85 return fmt % name % this->
id_;
95 virtual operator string()
const {
return display(
"TestSubMO1"); }
107 virtual operator string()
const {
return display(
"TestSubMO2"); }
112 virtual operator string()
const {
return display(
"TestSubMO21"); }
118 template<
class DMO=DummyMO,
class B=DummyMO>
119 class TestPlacement ;
135 template<
class DMO,
class B>
147 return static_cast<DMO*
>
152 template class TestPlacement<TestSubMO21,TestSubMO2>;
Token or Atom with distinct identity.
MObject is the interface class for all "Media Objects".
A refcounting Handle to an MObject of type MO, used to constrain or explicitly specify the location w...
abstract base class of all MObjects for providing common services.
string buildShortID(lib::Literal typeID, string suffix="") const
Test MObject subclass, which, contrary to any real MObject, can be created directly without involving...
virtual string initShortID() const
static void killDummy(MObject *dum)
virtual bool isValid() const
MObject self-test (usable for asserting)
string display(Symbol name) const
DEFINE_PROCESSABLE_BY(BuilderTool)
TestPlacement(Placement< DummyMO > const &refP)
TestPlacement(DummyMO &dummyObj)
TestPlacement(DMO &dummyObj)
A front-end for using printf-style formatting.
int rani(uint bound=_iBOUND())
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
Core abstraction: placement of a media object into session context.
Simplistic test class runner.
Subclass-1 is not defined "processible", thus will always be handled as DummyMO...
virtual void specialAPI() const
Subclass-2 is defined "processible", but we omit the necessary "applicable" definition in TestTool,...
DEFINE_PROCESSABLE_BY(BuilderTool)
Marker types to indicate a literal string and a Symbol.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
#define INSTANCEOF(CLASS, EXPR)
shortcut for subclass test, intended for assertions only.