MythTV  master
Public Member Functions | Protected Attributes | List of all members
MHOctetString Class Reference

#include <libmythfreemheg/BaseClasses.h>

Collaboration diagram for MHOctetString:
[legend]

Public Member Functions

 MHOctetString ()=default
 
 MHOctetString (const char *str, int nLen=-1)
 
 MHOctetString (const unsigned char *str, int nLen)
 
 MHOctetString (const MHOctetString &str, int nOffset=0, int nLen=-1)
 
 MHOctetString (const MHOctetString &o)
 
virtual ~MHOctetString ()
 
void Copy (const MHOctetString &str)
 
MHOctetStringoperator= (const MHOctetString &o)
 
int Size () const
 
int Compare (const MHOctetString &str) const
 
bool Equal (const MHOctetString &str) const
 
unsigned char GetAt (int i) const
 
const unsigned char * Bytes () const
 
void Append (const MHOctetString &str)
 
QString Printable () const
 
void PrintMe (FILE *fd, int nTabs) const
 

Protected Attributes

int m_nLength {0}
 
unsigned char * m_pChars {nullptr}
 

Detailed Description

Definition at line 107 of file BaseClasses.h.

Constructor & Destructor Documentation

◆ MHOctetString() [1/5]

MHOctetString::MHOctetString ( )
default

◆ MHOctetString() [2/5]

MHOctetString::MHOctetString ( const char *  str,
int  nLen = -1 
)

Definition at line 38 of file BaseClasses.cpp.

◆ MHOctetString() [3/5]

MHOctetString::MHOctetString ( const unsigned char *  str,
int  nLen 
)

Definition at line 64 of file BaseClasses.cpp.

◆ MHOctetString() [4/5]

MHOctetString::MHOctetString ( const MHOctetString str,
int  nOffset = 0,
int  nLen = -1 
)

Definition at line 85 of file BaseClasses.cpp.

◆ MHOctetString() [5/5]

MHOctetString::MHOctetString ( const MHOctetString o)
inline

Definition at line 114 of file BaseClasses.h.

◆ ~MHOctetString()

MHOctetString::~MHOctetString ( )
virtual

Definition at line 113 of file BaseClasses.cpp.

Member Function Documentation

◆ Copy()

void MHOctetString::Copy ( const MHOctetString str)

◆ operator=()

MHOctetString& MHOctetString::operator= ( const MHOctetString o)
inline

Definition at line 118 of file BaseClasses.h.

◆ Size()

int MHOctetString::Size ( ) const
inline

◆ Compare()

int MHOctetString::Compare ( const MHOctetString str) const

Definition at line 165 of file BaseClasses.cpp.

Referenced by Equal(), and MHOctetStrVar::TestVariable().

◆ Equal()

bool MHOctetString::Equal ( const MHOctetString str) const
inline

◆ GetAt()

unsigned char MHOctetString::GetAt ( int  i) const
inline

◆ Bytes()

const unsigned char* MHOctetString::Bytes ( ) const
inline

◆ Append()

void MHOctetString::Append ( const MHOctetString str)

Definition at line 198 of file BaseClasses.cpp.

Referenced by MHResidentProgram::CallProgram(), and MHAppend::Perform().

◆ Printable()

QString MHOctetString::Printable ( ) const
inline

◆ PrintMe()

void MHOctetString::PrintMe ( FILE *  fd,
int  nTabs 
) const

Member Data Documentation

◆ m_nLength

int MHOctetString::m_nLength {0}
protected

Definition at line 133 of file BaseClasses.h.

Referenced by Append(), Compare(), Copy(), MHOctetString(), Printable(), PrintMe(), and Size().

◆ m_pChars

unsigned char* MHOctetString::m_pChars {nullptr}
protected

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