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

#include <PPropertiesWriter.h>

Static Public Member Functions

static TBOOL WriteTRB (const Toshi::TString8 &a_sFilePath, const PBProperties &a_oProperties, TBOOL a_bCompress=false)
 

Detailed Description

Definition at line 9 of file PPropertiesWriter.h.

Member Function Documentation

◆ WriteTRB()

static TBOOL PPropertiesWriter::WriteTRB ( const Toshi::TString8 & a_sFilePath,
const PBProperties & a_oProperties,
TBOOL a_bCompress = false )
inlinestatic

Definition at line 147 of file PPropertiesWriter.h.

148 {
149 TASSERT( a_oProperties.GetParentProperties() == TNULL );
150
151 PTRB trb;
152 auto sect = trb.GetSections();
153 auto symb = trb.GetSymbols();
154
155 auto stack = sect->CreateStream();
156
157 FillStringMap( a_oProperties );
158
159 symb->Add( stack, "Main", DumpProperties( a_oProperties, stack ).get() );
160 trb.WriteToFile( a_sFilePath.GetString(), a_bCompress );
161
162 s_aStringMap.Clear();
163
164 return TTRUE;
165 }
#define TASSERT(X,...)
Definition Defines.h:138
#define TNULL
Definition Typedefs.h:23
#define TTRUE
Definition Typedefs.h:25
const PBProperties * GetParentProperties() const
PTRBSymbols * GetSymbols()
Definition PTRB.h:719
PTRBSections * GetSections()
Definition PTRB.h:720
TBOOL WriteToFile(Toshi::T2StringView filepath, TBOOL compress=false)
Definition PTRB.h:673

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