OpenBarnyard
 
Loading...
Searching...
No Matches
PBProperties::PBProperty Class Reference

#include <PBProperties.h>

Public Member Functions

 PBProperty ()
 
 PBProperty (const Toshi::TString8 &a_sName, TINT a_iValue)
 
 PBProperty (const Toshi::TString8 &a_sName, TBOOL a_bValue)
 
 PBProperty (const Toshi::TString8 &a_sName, TFLOAT a_fValue)
 
 PBProperty (const Toshi::TString8 &a_sName, TUINT32 a_uiValue)
 
 PBProperty (const Toshi::TString8 &a_sName, const Toshi::TString8 &a_sValue)
 
 PBProperty (const Toshi::TString8 &a_sName, PBProperties *a_pProperties)
 
 PBProperty (const Toshi::TString8 &a_sName, PBPropertyValueArray *a_pArray)
 
 PBProperty (const Toshi::TString8 &a_sName, PBPropertyLocaleString a_strLocaleString)
 
 PBProperty (const PBProperty &other)
 
 PBProperty (PBProperty &&other) noexcept
 
 ~PBProperty ()
 
PBPropertyNameGetName ()
 
PBPropertyValueGetValue ()
 
const PBPropertyNameGetName () const
 
const PBPropertyValueGetValue () const
 
PBPropertyoperator= (const PBProperty &other)
 
PBPropertyoperator= (PBProperty &&other) noexcept
 

Friends

class PPropertiesWriter
 

Detailed Description

Definition at line 663 of file PBProperties.h.

Constructor & Destructor Documentation

◆ PBProperty() [1/11]

PBProperties::PBProperty::PBProperty ( )
inline

Definition at line 669 of file PBProperties.h.

670 {
671 m_pName = TNULL;
672 m_pValue = TNULL;
673 }
#define TNULL
Definition Typedefs.h:23

◆ PBProperty() [2/11]

PBProperties::PBProperty::PBProperty ( const Toshi::TString8 & a_sName,
TINT a_iValue )
inline

Definition at line 675 of file PBProperties.h.

676 {
677 m_pName = new PBPropertyName( a_sName );
678 m_pValue = new PBPropertyValue( a_iValue );
679 }

◆ PBProperty() [3/11]

PBProperties::PBProperty::PBProperty ( const Toshi::TString8 & a_sName,
TBOOL a_bValue )
inline

Definition at line 681 of file PBProperties.h.

682 {
683 m_pName = new PBPropertyName( a_sName );
684 m_pValue = new PBPropertyValue( a_bValue );
685 }

◆ PBProperty() [4/11]

PBProperties::PBProperty::PBProperty ( const Toshi::TString8 & a_sName,
TFLOAT a_fValue )
inline

Definition at line 687 of file PBProperties.h.

688 {
689 m_pName = new PBPropertyName( a_sName );
690 m_pValue = new PBPropertyValue( a_fValue );
691 }

◆ PBProperty() [5/11]

PBProperties::PBProperty::PBProperty ( const Toshi::TString8 & a_sName,
TUINT32 a_uiValue )
inline

Definition at line 693 of file PBProperties.h.

694 {
695 m_pName = new PBPropertyName( a_sName );
696 m_pValue = new PBPropertyValue( a_uiValue );
697 }

◆ PBProperty() [6/11]

PBProperties::PBProperty::PBProperty ( const Toshi::TString8 & a_sName,
const Toshi::TString8 & a_sValue )
inline

Definition at line 699 of file PBProperties.h.

700 {
701 m_pName = new PBPropertyName( a_sName );
702 m_pValue = new PBPropertyValue( a_sValue );
703 }

◆ PBProperty() [7/11]

PBProperties::PBProperty::PBProperty ( const Toshi::TString8 & a_sName,
PBProperties * a_pProperties )
inline

Definition at line 705 of file PBProperties.h.

706 {
707 m_pName = new PBPropertyName( a_sName );
708 m_pValue = new PBPropertyValue( a_pProperties );
709 }

◆ PBProperty() [8/11]

PBProperties::PBProperty::PBProperty ( const Toshi::TString8 & a_sName,
PBPropertyValueArray * a_pArray )
inline

Definition at line 711 of file PBProperties.h.

712 {
713 m_pName = new PBPropertyName( a_sName );
714 m_pValue = new PBPropertyValue( a_pArray );
715 }

◆ PBProperty() [9/11]

PBProperties::PBProperty::PBProperty ( const Toshi::TString8 & a_sName,
PBPropertyLocaleString a_strLocaleString )
inline

Definition at line 717 of file PBProperties.h.

718 {
719 m_pName = new PBPropertyName( a_sName );
720 m_pValue = new PBPropertyValue( a_strLocaleString );
721 }

◆ PBProperty() [10/11]

PBProperties::PBProperty::PBProperty ( const PBProperty & other)
inline

Definition at line 723 of file PBProperties.h.

724 {
725 m_pName = new PBPropertyName( *other.m_pName );
726 m_pValue = new PBPropertyValue( *other.m_pValue );
727 }

◆ PBProperty() [11/11]

PBProperties::PBProperty::PBProperty ( PBProperty && other)
inlinenoexcept

Definition at line 729 of file PBProperties.h.

730 {
731 m_pName = other.m_pName;
732 m_pValue = other.m_pValue;
733 other.m_pName = TNULL;
734 other.m_pValue = TNULL;
735 }

◆ ~PBProperty()

PBProperties::PBProperty::~PBProperty ( )
inline

Definition at line 737 of file PBProperties.h.

738 {
739 Delete();
740 }

Member Function Documentation

◆ GetName() [1/2]

PBPropertyName & PBProperties::PBProperty::GetName ( )
inline

Definition at line 742 of file PBProperties.h.

743 {
744 return *m_pName;
745 }

◆ GetName() [2/2]

const PBPropertyName & PBProperties::PBProperty::GetName ( ) const
inline

Definition at line 752 of file PBProperties.h.

753 {
754 return *m_pName;
755 }

◆ GetValue() [1/2]

PBPropertyValue * PBProperties::PBProperty::GetValue ( )
inline

Definition at line 747 of file PBProperties.h.

748 {
749 return m_pValue;
750 }

◆ GetValue() [2/2]

const PBPropertyValue * PBProperties::PBProperty::GetValue ( ) const
inline

Definition at line 757 of file PBProperties.h.

758 {
759 return m_pValue;
760 }

◆ operator=() [1/2]

PBProperty & PBProperties::PBProperty::operator= ( const PBProperty & other)
inline

Definition at line 762 of file PBProperties.h.

763 {
764 Delete();
765
766 m_pName = new PBPropertyName( *other.m_pName );
767 m_pValue = new PBPropertyValue( *other.m_pValue );
768
769 return *this;
770 }

◆ operator=() [2/2]

PBProperty & PBProperties::PBProperty::operator= ( PBProperty && other)
inlinenoexcept

Definition at line 772 of file PBProperties.h.

773 {
774 Delete();
775
776 m_pName = other.m_pName;
777 m_pValue = other.m_pValue;
778 other.m_pName = TNULL;
779 other.m_pValue = TNULL;
780
781 return *this;
782 }

Friends And Related Symbol Documentation

◆ PPropertiesWriter

friend class PPropertiesWriter
friend

Definition at line 666 of file PBProperties.h.


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