SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
toolpp::FGDWriter Class Reference

#include <FGD.h>

Collaboration diagram for toolpp::FGDWriter:

Classes

class  AutoVisGroupWriter
class  EntityWriter

Public Member Functions

FGDWriterinclude (const std::filesystem::path &fgdPath)
FGDWriterversion (int version)
FGDWritermapSize (sourcepp::math::Vec2i mapSize)
FGDWritermaterialExclusionDirs (std::initializer_list< std::string_view > dirs)
FGDWritermaterialExclusionDirs (std::span< const std::string_view > dirs)
AutoVisGroupWriter beginAutoVisGroup (std::string_view parentName)
EntityWriter beginEntity (std::string_view classType, std::initializer_list< std::string_view > classProperties, std::string_view name, std::string_view description="", std::string_view docsURL="")
EntityWriter beginEntity (std::string_view classType, std::span< const std::string_view > classProperties, std::string_view name, std::string_view description="", std::string_view docsURL="")
std::string bake () const
bool bake (const std::filesystem::path &fgdPath) const

Static Public Member Functions

static FGDWriter begin ()

Protected Member Functions

 FGDWriter ()

Protected Attributes

std::string backingData
BufferStream writer

Detailed Description

Definition at line 123 of file FGD.h.

Constructor & Destructor Documentation

◆ FGDWriter()

FGDWriter::FGDWriter ( )
protected

Definition at line 614 of file FGD.cpp.

Member Function Documentation

◆ bake() [1/2]

std::string FGDWriter::bake ( ) const
nodiscard

Definition at line 867 of file FGD.cpp.

◆ bake() [2/2]

bool FGDWriter::bake ( const std::filesystem::path & fgdPath) const

Definition at line 876 of file FGD.cpp.

◆ begin()

FGDWriter FGDWriter::begin ( )
staticnodiscard

Definition at line 617 of file FGD.cpp.

◆ beginAutoVisGroup()

FGDWriter::AutoVisGroupWriter FGDWriter::beginAutoVisGroup ( std::string_view parentName)

Definition at line 662 of file FGD.cpp.

◆ beginEntity() [1/2]

FGDWriter::EntityWriter FGDWriter::beginEntity ( std::string_view classType,
std::initializer_list< std::string_view > classProperties,
std::string_view name,
std::string_view description = "",
std::string_view docsURL = "" )

Definition at line 694 of file FGD.cpp.

◆ beginEntity() [2/2]

FGDWriter::EntityWriter FGDWriter::beginEntity ( std::string_view classType,
std::span< const std::string_view > classProperties,
std::string_view name,
std::string_view description = "",
std::string_view docsURL = "" )

Definition at line 698 of file FGD.cpp.

◆ include()

FGDWriter & FGDWriter::include ( const std::filesystem::path & fgdPath)

Definition at line 621 of file FGD.cpp.

◆ mapSize()

FGDWriter & FGDWriter::mapSize ( sourcepp::math::Vec2i mapSize)

Definition at line 637 of file FGD.cpp.

◆ materialExclusionDirs() [1/2]

FGDWriter & FGDWriter::materialExclusionDirs ( std::initializer_list< std::string_view > dirs)

Definition at line 647 of file FGD.cpp.

◆ materialExclusionDirs() [2/2]

FGDWriter & FGDWriter::materialExclusionDirs ( std::span< const std::string_view > dirs)

Definition at line 651 of file FGD.cpp.

◆ version()

FGDWriter & FGDWriter::version ( int version)

Definition at line 629 of file FGD.cpp.

Member Data Documentation

◆ backingData

std::string toolpp::FGDWriter::backingData
protected

Definition at line 208 of file FGD.h.

◆ writer

BufferStream toolpp::FGDWriter::writer
protected

Definition at line 209 of file FGD.h.


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