MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
MHUnion Class Reference

#include <libmythfreemheg/BaseClasses.h>

Collaboration diagram for MHUnion:
[legend]

Public Types

enum  UnionTypes : std::uint8_t {
  U_Int, U_Bool, U_String, U_ObjRef,
  U_ContentRef, U_None
}
 

Public Member Functions

 MHUnion ()=default
 
 MHUnion (int nVal)
 
 MHUnion (bool fVal)
 
 MHUnion (const MHOctetString &strVal)
 
 MHUnion (const MHObjectRef &objVal)
 
 MHUnion (const MHContentRef &cnVal)
 
MHUnionoperator= (const MHUnion &)=default
 
void GetValueFrom (const MHParameter &value, MHEngine *engine)
 
QString Printable () const
 
void CheckType (enum UnionTypes t) const
 

Static Public Member Functions

static const char * GetAsString (enum UnionTypes t)
 

Public Attributes

enum MHUnion::UnionTypes U_None
 
int m_nIntVal {0}
 
bool m_fBoolVal {false}
 
MHOctetString m_strVal
 
MHObjectRef m_objRefVal
 
MHContentRef m_contentRefVal
 

Detailed Description

Definition at line 283 of file BaseClasses.h.

Member Enumeration Documentation

◆ UnionTypes

enum MHUnion::UnionTypes : std::uint8_t
Enumerator
U_Int 
U_Bool 
U_String 
U_ObjRef 
U_ContentRef 
U_None 

Definition at line 298 of file BaseClasses.h.

Constructor & Destructor Documentation

◆ MHUnion() [1/6]

MHUnion::MHUnion ( )
default

◆ MHUnion() [2/6]

MHUnion::MHUnion ( int  nVal)
inline

Definition at line 287 of file BaseClasses.h.

◆ MHUnion() [3/6]

MHUnion::MHUnion ( bool  fVal)
inline

Definition at line 288 of file BaseClasses.h.

◆ MHUnion() [4/6]

MHUnion::MHUnion ( const MHOctetString strVal)
inline

Definition at line 289 of file BaseClasses.h.

◆ MHUnion() [5/6]

MHUnion::MHUnion ( const MHObjectRef objVal)
inline

Definition at line 290 of file BaseClasses.h.

◆ MHUnion() [6/6]

MHUnion::MHUnion ( const MHContentRef cnVal)
inline

Definition at line 291 of file BaseClasses.h.

Member Function Documentation

◆ operator=()

MHUnion& MHUnion::operator= ( const MHUnion )
default

◆ GetValueFrom()

void MHUnion::GetValueFrom ( const MHParameter value,
MHEngine engine 
)

◆ Printable()

QString MHUnion::Printable ( ) const

◆ CheckType()

void MHUnion::CheckType ( enum UnionTypes  t) const

◆ GetAsString()

const char * MHUnion::GetAsString ( enum UnionTypes  t)
static

Definition at line 645 of file BaseClasses.cpp.

Referenced by MHResidentProgram::CallProgram(), and CheckType().

Member Data Documentation

◆ U_None

enum MHUnion::UnionTypes MHUnion::U_None

◆ m_nIntVal

int MHUnion::m_nIntVal {0}

◆ m_fBoolVal

bool MHUnion::m_fBoolVal {false}

◆ m_strVal

MHOctetString MHUnion::m_strVal

◆ m_objRefVal

MHObjectRef MHUnion::m_objRefVal

◆ m_contentRefVal

MHContentRef MHUnion::m_contentRefVal

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