Advanced Strategic Command
Classes | Typedefs | Functions
messaginghub.h File Reference
#include <set>
#include <sigc++/sigc++.h>
#include "loki/Singleton.h"
#include "../ascstring.h"
Include dependency graph for messaginghub.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StatusMessageWindowHolder
 A class that hols a MessageWindow. This class ensures that the window is removed if the last copy of the object is deleted. More...
 
class  StatusMessageWindowHolder::UserData
 
class  MessagingHubBase
 

Typedefs

typedef Loki::SingletonHolder
< MessagingHubBase,
Loki::CreateUsingNew,
Loki::NoDestroy > 
MessagingHub
 

Functions

void fatalError (const char *formatstring,...)
 
void fatalError (const ASCString &string)
 
void errorMessage (const ASCString &string)
 
void warningMessage (const ASCString &string)
 
void infoMessage (const ASCString &string)
 
void statusMessage (const ASCString &string)
 
void displayLogMessage (int msgVerbosity, const char *message,...)
 
void displayLogMessage (int msgVerbosity, const ASCString &message)
 
void logMessage (const ASCString &category, const ASCString &message)
 

Typedef Documentation

typedef Loki::SingletonHolder<MessagingHubBase,Loki::CreateUsingNew,Loki::NoDestroy > MessagingHub

Definition at line 124 of file messaginghub.h.

Function Documentation

void displayLogMessage ( int  msgVerbosity,
const char *  message,
  ... 
)
void displayLogMessage ( int  msgVerbosity,
const ASCString message 
)

Definition at line 132 of file messaginghub.cpp.

void errorMessage ( const ASCString string)
void fatalError ( const char *  formatstring,
  ... 
)

Definition at line 156 of file messaginghub.cpp.

References fatalError(), and ASCString::vaformat().

void fatalError ( const ASCString string)

Definition at line 151 of file messaginghub.cpp.

References MessagingHubBase::FatalError.

Referenced by ContainerBase::addToCargo(), Building::addview(), Vehicle::addview(), asc_malloc(), TextPropertyList::buildIDs(), calcMoveMalus(), checkFileLoadability(), Building::convert(), Vehicle::convert(), Factory< AbstractProduct, IdentifierType >::createObject(), Factory1< AbstractProduct, IdentifierType, creatorParam >::createObject(), doresearch(), duplicateIDError(), tdialogbox::enablebutton(), Vehicle::endOwnTurn(), TextPropertyGroup::error(), fatalError(), PropertyContainer::Property::findEntry(), gamethread(), getFieldMask(), SoundList::getInstance(), MapField::getmovemalus(), SoundList::init(), tcomputevehicleview::init(), tcomputebuildingview::init(), initFileIO(), initReplayLogging(), loadAllData(), loadASCFieldImageArray(), loadStartupMap(), main(), mapeditorMainThread(), MiningStation::MiningStation(), putbuilding(), MusicPlayList::read(), ObjectType::read(), MapCoordinate::read(), Vehicle::read(), readgameoptions(), ASC_PG_App::reloadTheme(), Building::removeview(), Vehicle::removeview(), ActionContainer::rerun(), runTester(), TerrainType::Weather::runTextIO(), ContainerBaseType::TransportationIO::runTextIO(), ContainerBaseType::runTextIO(), Bi3MapTranslationTable::runTextIO(), savereplay(), ScreenResolutionSetup::ScreenResolutionSetup(), MoveUnitCommand::searchFields(), GraphicSetManager_Base::setActive(), MapField::setparams(), Sound::Sound(), SoundSystem::SoundSystem(), tdrawgettempline::start(), tcomputeview::testfield(), Vehicle::Vehicle(), versionError(), PropertyContainer::warning(), and PropertyReadingContainer::writeProperty().

void infoMessage ( const ASCString string)
void logMessage ( const ASCString category,
const ASCString message 
)

Definition at line 145 of file messaginghub.cpp.

Referenced by GameMap::endRound(), and MatterConverter::run().

void statusMessage ( const ASCString string)
void warningMessage ( const ASCString string)