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

#include <BaseClasses.h>

Collaboration diagram for MHUnion:
Collaboration graph
[legend]

Public Types

enum  UnionTypes {
  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) 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 273 of file BaseClasses.h.

Member Enumeration Documentation

◆ UnionTypes

Enumerator
U_Int 
U_Bool 
U_String 
U_ObjRef 
U_ContentRef 
U_None 

Definition at line 288 of file BaseClasses.h.

Constructor & Destructor Documentation

◆ MHUnion() [1/6]

MHUnion::MHUnion ( )
default

◆ MHUnion() [2/6]

MHUnion::MHUnion ( int  nVal)
inline

Definition at line 277 of file BaseClasses.h.

◆ MHUnion() [3/6]

MHUnion::MHUnion ( bool  fVal)
inline

Definition at line 278 of file BaseClasses.h.

◆ MHUnion() [4/6]

MHUnion::MHUnion ( const MHOctetString strVal)
inline

Definition at line 279 of file BaseClasses.h.

◆ MHUnion() [5/6]

MHUnion::MHUnion ( const MHObjectRef objVal)
inline

Definition at line 280 of file BaseClasses.h.

◆ MHUnion() [6/6]

MHUnion::MHUnion ( const MHContentRef cnVal)
inline

Definition at line 281 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 666 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: