63 using std::dynamic_pointer_cast;
79 PGrid gridImplementation = AssetManager::instance().wrap (newGrid);
80 PQuant quantiser (dynamic_pointer_cast<const Quantiser>(gridImplementation));
85 return gridImplementation;
138 throw error::Invalid(
"compound and variable time grids are a planned feature"
139 , error::LUMIERA_ERROR_UNIMPLEMENTED);
140 ENSURE (fps,
"infinite grid should have been detected by FrameRate ctor");
144 _Fmt gridIdFormat(
"grid(%f_%d)");
145 id = string(gridIdFormat % fps % _raw(origin));
174 spec.fps = frames_per_second;
175 spec.origin = origin;
177 return spec.commit();
Expecting Advice and giving Advice: a cross-cutting collaboration of loosely coupled participants.
Steam-Layer Interface: Asset Lookup and Organisation.
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Token or Atom with distinct identity.
Duration is the internal Lumiera time metric.
Simple stand-alone Quantiser implementation based on a constant sized gird.
Framerate specified as frames per second.
Offset measures a distance in time.
Facility to create grid-aligned time values.
A time interval anchored at a specific point in time.
basic constant internal time value.
Lumiera's internal time value datatype.
Access point for the advising entity (server).
void setAdvice(AD const &pieceOfAdvice)
const Ident ident
Asset identification tuple.
A front-end for using printf-style formatting.
std::shared_ptr< const Quantiser > PQuant
boost::rational< int64_t > FSecs
rational representation of fractional seconds
LumieraError< LERR_(INVALID)> Invalid
The asset subsystem of the Steam-Layer.
Steam-Layer implementation namespace root.
bool isnil(lib::time::Duration const &dur)
Library functions to support the formation of grid-aligned time values.
Naming and labelling scheme for structural assets.
typed symbolic and hash ID for asset-like position accounting.
string name
element ID, comprehensible but sanitised.
CStr cStr(std::string const &rendered)
convenience shortcut: forced conversion to c-String via string.
To establish a reference scale for quantised time values.
a family of time value like entities and their relationships.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...