41 using mobject::Session;
61 string pipeID = isnil (arg)?
"Black Hole" : arg[1];
62 string streamID = 2>arg.size()?
"teststream" : arg[2] ;
76 normaliseID (pID_sane);
77 CHECK (pID_sane != pID);
82 CHECK (thePipe->getProcPatt());
83 CHECK (thePipe->getPipeID() == pID_sane);
85 CHECK (thePipe->shortDesc == pID_sane);
88 CHECK (idi.
org ==
"lumi");
89 CHECK (contains (idi.
name, thePipe->getPipeID()));
90 CHECK (contains (idi.
name,
string{thePipe->getStreamID()}));
94 CHECK ( cat.hasKind (
STRUCT) );
95 CHECK ( cat.isWithin(refcat) );
105 CHECK (pipe1->getPipeID() == pID);
107 string pID2 =
"another-" + pID;
110 CHECK (pipe2 != pipe1);
111 Category c1 = pipe1->ident.category;
112 Category c2 = pipe2->ident.category;
117 CHECK (pipe3 == pipe2);
127 CHECK (pipe1->ident.category.hasKind(
VIDEO));
128 CHECK (pipe1->getProcPatt());
130 CHECK (propa == pipe1->getProcPatt());
134 CHECK (pipe2 == pipe1);
136 CHECK (pipe2 == pipe1);
138 CHECK (pipe2 == pipe1);
140 auto sID =
string{pipe1->getStreamID()};
155 PProcPatt thePatt = thePipe->getProcPatt();
160 CHECK (thePatt != pattern2);
162 TODO (
"add something to the new pattern, e.g. an effect");
168 CHECK (pattern2 == pipe2x->getProcPatt());
171 thePipe->switchProcPatt(pattern2);
176 CHECK ( aMang.
known (thePipe->getID()));
182 CHECK (!aMang.
known (thePipe->getID()));
185 PProcPatt pattern3 = thePipe->getProcPatt();
186 CHECK (thePipe->getProcPatt());
187 CHECK ( pattern3 == pattern2);
190 pattern3 = pipe3x->getProcPatt();
191 CHECK (pattern3 != pattern2);
193 CHECK (pipe3x != pipe2x);
196 TRACE (asset_mem,
"leaving BasicPipe_test::dependProcPatt()");
Small helper and diagnostic functions related to Asset and AssetManager.
Steam-Layer Interface: Asset Lookup and Organisation.
Definition of Asset categorisation.
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Generic interface to express a query for specifically typed result elements exposing some capabilitie...
Facade for the Asset subsystem.
static lib::Depend< AssetManager > instance
get at the system-wide asset manager instance.
void remove(IDA id)
remove the given asset from the internal DB.
Tree like classification of Assets.
static PPipe query(string const &properties)
convenience shortcut for retrieving default configured pipes
lib::P< ProcPatt > newCopy(string newID) const
create a new ProcPatt asset as a literal copy of this one.
lib::P< Pipe > newPipe(string pipeID, string streamID)
Factory method for creating Pipes explicitly.
virtual const ID< Struct > & getID() const
<
static StructFactory retrieve
storage for the static StructFactory instance
void create_or_ref(string pID)
void createExplicit(string pID, string sID)
void create_using_default()
void dependProcPatt(string pID)
virtual void run(Arg arg)
DefaultsAccess defaults
manages default configured objects
static session::SessManager & current
access point to the current Session
This header is for including and configuring NoBug.
void normaliseID(string &id)
ensure standard format for a given id string.
The asset subsystem of the Steam-Layer.
lib::P< const asset::ProcPatt > PProcPatt
bool dependencyCheck(lib::P< CHI > child, lib::P< PAR > parent)
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
bool contains(MAP &map, typename MAP::key_type const &key)
shortcut for containment test on a map
bool isnil(lib::time::Duration const &dur)
A "processing pipe" represented as Asset.
Utilities to support working with predicate queries.
Basic and generic representation of an internal query.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Primary Interface to the current Session.
a POD comprised of all the information sufficiently identifying any given Asset.
asset::Category category
primary tree like classification of the asset.
string name
element ID, comprehensible but sanitised.
const string org
origin or authorship id.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...