XJ music engine  1.9.6
In-game runtime engine for XJ music.
Public Member Functions | Protected Attributes | List of all members
XJ::FabricationWrapper Class Reference

#include <FabricationWrapper.h>

Inheritance diagram for XJ::FabricationWrapper:
XJ::Craft XJ::BackgroundCraft XJ::BeatCraft XJ::DetailCraft XJ::MacroMainCraft XJ::TransitionCraft

Public Member Functions

 FabricationWrapper (Fabricator *fabricator)
 
FabricationException exception (const std::string &message) const
 
std::string formatLog (const std::string &message) const
 
void reportMissing (const std::map< std::string, std::string > &traces) const
 

Protected Attributes

Fabricatorfabricator
 

Detailed Description

Fabrication wrapper is a common foundation for all craft

Constructor & Destructor Documentation

◆ FabricationWrapper()

FabricationWrapper::FabricationWrapper ( Fabricator fabricator)
explicit

Must extend this class and inject

Parameters
fabricatorinternal

Member Function Documentation

◆ exception()

FabricationException FabricationWrapper::exception ( const std::string &  message) const

Create a FabricationException prefixed with a segment id

Parameters
messageto include in exception
Returns
FabricationException to throw

◆ formatLog()

std::string FabricationWrapper::formatLog ( const std::string &  message) const

Format a message with the segmentId as prefix

Parameters
messageto format
Returns
formatted message with segmentId as prefix

◆ reportMissing()

void FabricationWrapper::reportMissing ( const std::map< std::string, std::string > &  traces) const

Report a missing entity as a segment message

Parameters
tracesof how missing entity was searched for

Member Data Documentation

◆ fabricator

Fabricator* XJ::FabricationWrapper::fabricator
protected

The documentation for this class was generated from the following files: