OpenBarnyard
 
Loading...
Searching...
No Matches
PBPropertyName Class Reference

#include <PBProperties.h>

Public Member Functions

 PBPropertyName ()
 
 PBPropertyName (const Toshi::TString8 &a_sName)
 
 PBPropertyName (const PBPropertyName &other)
 
 PBPropertyName (PBPropertyName &&other) noexcept
 
 ~PBPropertyName ()
 
void SetName (const Toshi::TString8 &a_sName)
 
const TCHARGetString () const
 
TBOOL operator== (PBPropertyName *a_pName) const
 
TBOOL operator== (const TCHAR *a_szName) const
 
PBPropertyName operator= (const Toshi::TString8 &a_sName)
 

Friends

class PPropertiesWriter
 

Detailed Description

Definition at line 584 of file PBProperties.h.

Constructor & Destructor Documentation

◆ PBPropertyName() [1/4]

PBPropertyName::PBPropertyName ( )
inline

Definition at line 590 of file PBProperties.h.

591 {
592 m_szName = TNULL;
593 }
#define TNULL
Definition Typedefs.h:23

◆ PBPropertyName() [2/4]

PBPropertyName::PBPropertyName ( const Toshi::TString8 & a_sName)
inline

Definition at line 595 of file PBProperties.h.

596 {
597 m_szName = new TCHAR[ a_sName.Length() + 1 ];
598 Toshi::TStringManager::String8Copy( m_szName, a_sName );
599 }
char TCHAR
Definition Typedefs.h:20

◆ PBPropertyName() [3/4]

PBPropertyName::PBPropertyName ( const PBPropertyName & other)
inline

Definition at line 601 of file PBProperties.h.

602 {
603 m_szName = new TCHAR[ Toshi::TStringManager::String8Length( other.m_szName ) + 1 ];
604 Toshi::TStringManager::String8Copy( m_szName, other.m_szName );
605 }

◆ PBPropertyName() [4/4]

PBPropertyName::PBPropertyName ( PBPropertyName && other)
inlinenoexcept

Definition at line 607 of file PBProperties.h.

608 {
609 m_szName = other.m_szName;
610 other.m_szName = TNULL;
611 }

◆ ~PBPropertyName()

PBPropertyName::~PBPropertyName ( )
inline

Definition at line 613 of file PBProperties.h.

614 {
615 Delete();
616 }

Member Function Documentation

◆ GetString()

const TCHAR * PBPropertyName::GetString ( ) const
inline

Definition at line 626 of file PBProperties.h.

627 {
628 return m_szName;
629 }

◆ operator=()

PBPropertyName PBPropertyName::operator= ( const Toshi::TString8 & a_sName)
inline

Definition at line 641 of file PBProperties.h.

642 {
643 Delete();
644
645 m_szName = new TCHAR[ a_sName.Length() + 1 ];
646 Toshi::TStringManager::String8Copy( m_szName, a_sName );
647 }

◆ operator==() [1/2]

TBOOL PBPropertyName::operator== ( const TCHAR * a_szName) const
inline

Definition at line 636 of file PBProperties.h.

637 {
638 return Toshi::TStringManager::String8Compare( m_szName, a_szName ) == 0;
639 }

◆ operator==() [2/2]

TBOOL PBPropertyName::operator== ( PBPropertyName * a_pName) const
inline

Definition at line 631 of file PBProperties.h.

632 {
633 return Toshi::TStringManager::String8Compare( m_szName, a_pName->m_szName ) == 0;
634 }

◆ SetName()

void PBPropertyName::SetName ( const Toshi::TString8 & a_sName)
inline

Definition at line 618 of file PBProperties.h.

619 {
620 Delete();
621
622 m_szName = new TCHAR[ a_sName.Length() + 1 ];
623 Toshi::TStringManager::String8Copy( m_szName, a_sName );
624 }

Friends And Related Symbol Documentation

◆ PPropertiesWriter

friend class PPropertiesWriter
friend

Definition at line 587 of file PBProperties.h.


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