Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Nz::ErrorFlags Class Reference

Core class that represents flags for error. More...

Public Member Functions

 ErrorFlags (UInt32 flags, bool replace=false)
 Constructs a ErrorFlags object with flags. More...
 
 ErrorFlags (const ErrorFlags &)=delete
 
 ErrorFlags (ErrorFlags &&)=delete
 
 ~ErrorFlags ()
 Destructs the object and sets the old flag.
 
UInt32 GetPreviousFlags () const
 Gets the previous flag. More...
 
void SetFlags (UInt32 flags, bool replace=false)
 Sets the flags. More...
 
ErrorFlagsoperator= (const ErrorFlags &)=delete
 
ErrorFlagsoperator= (ErrorFlags &&)=delete
 

Detailed Description

Core class that represents flags for error.

Constructor & Destructor Documentation

◆ ErrorFlags()

Nz::ErrorFlags::ErrorFlags ( UInt32  flags,
bool  replace = false 
)

Constructs a ErrorFlags object with flags.

Parameters
flagsFlags for the error
replaceReplace the entirely the old flag if true, else do a "OR"

Member Function Documentation

◆ GetPreviousFlags()

UInt32 Nz::ErrorFlags::GetPreviousFlags ( ) const

Gets the previous flag.

Returns
Previous flag

◆ SetFlags()

void Nz::ErrorFlags::SetFlags ( UInt32  flags,
bool  replace = false 
)

Sets the flags.

Parameters
flagsFlags for the error
replaceReplace the entirely the old flag if true, else do a "OR"

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