VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Attributes
makVrv::DtBackgroundStatus Class Reference

Thread-safe status object for VR-Vantage background operations.

Represents a named background operation with an associated icon and descriptive message. State and message may be updated from any thread; reads are also safe from any thread. The name and icon are immutable after construction.

Public Member Functions

 DtBackgroundStatus (const std::string &name, const std::string &iconName, const std::string &title, DtStatusBarAlignment alignment=DtStatusBarAlignment::Center)
 
const std::string & name () const
 
const std::string & iconName () const
 
const std::string & title () const
 
DtStatusBarAlignment alignment () const
 
void setActive (bool active, const std::string &message)
 
bool isActive () const
 
std::string message () const
 
Non-copyable / Non-movable

DtBackgroundStatus contains a std::mutex which is not copyable. Copies of a status object would be independent and would not be seen by DtBackgroundStatusManager.

 DtBackgroundStatus (const DtBackgroundStatus &)=delete
 
DtBackgroundStatus & operator= (const DtBackgroundStatus &)=delete
 
 DtBackgroundStatus (DtBackgroundStatus &&)=delete
 
DtBackgroundStatus & operator= (DtBackgroundStatus &&)=delete
 

Protected Attributes

std::string myName
 
std::string myIconName
 
std::string myTitle
 
std::atomic< bool > myActive
 
std::mutex myMessageMutex
 
std::string myMessage
 

Private Attributes

DtStatusBarAlignment myAlignment
 

Constructor & Destructor Documentation

makVrv::DtBackgroundStatus::DtBackgroundStatus ( const std::string &  name,
const std::string &  iconName,
const std::string &  title,
DtStatusBarAlignment  alignment = DtStatusBarAlignment::Center 
)

Constructor.

Parameters
nameUnique logical name for this status (e.g., "sensorfx").
iconNameSVG icon file name used by the status bar widget.
titleHuman-readable display title shown in the status tooltip header (e.g., "SensorFX", "GPU Throttle"). Immutable after construction.
alignmentZone of the status bar where this status icon is displayed. Defaults to DtStatusBarAlignment::Center.
makVrv::DtBackgroundStatus::DtBackgroundStatus ( const DtBackgroundStatus &  )
delete
makVrv::DtBackgroundStatus::DtBackgroundStatus ( DtBackgroundStatus &&  )
delete

Member Function Documentation

DtBackgroundStatus& makVrv::DtBackgroundStatus::operator= ( const DtBackgroundStatus &  )
delete
DtBackgroundStatus& makVrv::DtBackgroundStatus::operator= ( DtBackgroundStatus &&  )
delete
const std::string& makVrv::DtBackgroundStatus::name ( ) const

Returns the logical name. Immutable after construction.

const std::string& makVrv::DtBackgroundStatus::iconName ( ) const

Returns the icon file name. Immutable after construction.

const std::string& makVrv::DtBackgroundStatus::title ( ) const

Returns the display title shown in the tooltip header. Immutable after construction.

DtStatusBarAlignment makVrv::DtBackgroundStatus::alignment ( ) const

Returns the alignment of this status icon within the status bar. Immutable after construction.

void makVrv::DtBackgroundStatus::setActive ( bool  active,
const std::string &  message 
)

Thread-safe update of active state and message.

Parameters
activeTrue if this status is currently active.
messageHuman-readable description of the current operation.
bool makVrv::DtBackgroundStatus::isActive ( ) const

Returns whether this status is currently active.

Returns
True if active. Implemented as an atomic load — lockless.
std::string makVrv::DtBackgroundStatus::message ( ) const

Returns a copy of the current message string.

Returns
A mutex-guarded copy of the message.

Member Data Documentation

std::string makVrv::DtBackgroundStatus::myName
protected

Logical name; immutable after construction.

std::string makVrv::DtBackgroundStatus::myIconName
protected

Icon file name; immutable after construction.

std::string makVrv::DtBackgroundStatus::myTitle
protected

Human-readable display title; immutable after construction.

std::atomic<bool> makVrv::DtBackgroundStatus::myActive
protected

Atomic active flag for lockless reads.

std::mutex makVrv::DtBackgroundStatus::myMessageMutex
mutableprotected

Mutex protecting myMessage.

std::string makVrv::DtBackgroundStatus::myMessage
protected

Human-readable status message; guarded by myMessageMutex.

DtStatusBarAlignment makVrv::DtBackgroundStatus::myAlignment
private

Alignment of this status icon within the status bar. Immutable after construction.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)