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

#include <CmdSeq.h>

Collaboration diagram for toolpp::CmdSeq:

Classes

struct  Command
struct  Sequence

Public Types

enum class  Type { INVALID , BINARY , KEYVALUES_HPP , KEYVALUES_STRATA }

Public Member Functions

 CmdSeq (Type type_)
 CmdSeq (const std::filesystem::path &cmdSeqPath)
 operator bool () const
Type getType () const
void setType (Type type_)
float getBinaryVersion () const
void setBinaryVersion (bool isV02)
std::vector< Sequence > & getSequences ()
const std::vector< Sequence > & getSequences () const
std::vector< std::byte > bake () const
bool bake (const std::filesystem::path &path) const

Protected Member Functions

void parseBinary (const std::filesystem::path &path)
void parseKeyValuesHPP (const std::filesystem::path &path)
void parseKeyValuesStrata (const std::filesystem::path &path)
std::vector< std::byte > bakeBinary () const
std::vector< std::byte > bakeKeyValuesHPP () const
std::vector< std::byte > bakeKeyValuesStrata () const

Protected Attributes

Type type
float version
std::vector< Sequencesequences

Detailed Description

Definition at line 11 of file CmdSeq.h.

Member Enumeration Documentation

◆ Type

enum class toolpp::CmdSeq::Type
strong
Enumerator
INVALID 
BINARY 
KEYVALUES_HPP 
KEYVALUES_STRATA 

Definition at line 48 of file CmdSeq.h.

Constructor & Destructor Documentation

◆ CmdSeq() [1/2]

CmdSeq::CmdSeq ( Type type_)
explicit

Definition at line 64 of file CmdSeq.cpp.

◆ CmdSeq() [2/2]

CmdSeq::CmdSeq ( const std::filesystem::path & cmdSeqPath)
explicit

Definition at line 68 of file CmdSeq.cpp.

Member Function Documentation

◆ bake() [1/2]

std::vector< std::byte > CmdSeq::bake ( ) const
nodiscard

Definition at line 309 of file CmdSeq.cpp.

◆ bake() [2/2]

bool CmdSeq::bake ( const std::filesystem::path & path) const

Definition at line 324 of file CmdSeq.cpp.

◆ bakeBinary()

std::vector< std::byte > CmdSeq::bakeBinary ( ) const
nodiscardprotected

Definition at line 226 of file CmdSeq.cpp.

◆ bakeKeyValuesHPP()

std::vector< std::byte > CmdSeq::bakeKeyValuesHPP ( ) const
nodiscardprotected

Definition at line 261 of file CmdSeq.cpp.

◆ bakeKeyValuesStrata()

std::vector< std::byte > CmdSeq::bakeKeyValuesStrata ( ) const
nodiscardprotected

Definition at line 283 of file CmdSeq.cpp.

◆ getBinaryVersion()

float CmdSeq::getBinaryVersion ( ) const
nodiscard

Definition at line 116 of file CmdSeq.cpp.

◆ getSequences() [1/2]

std::vector< CmdSeq::Sequence > & CmdSeq::getSequences ( )
nodiscard

Definition at line 218 of file CmdSeq.cpp.

◆ getSequences() [2/2]

const std::vector< CmdSeq::Sequence > & CmdSeq::getSequences ( ) const
nodiscard

Definition at line 222 of file CmdSeq.cpp.

◆ getType()

CmdSeq::Type CmdSeq::getType ( ) const
nodiscard

Definition at line 108 of file CmdSeq.cpp.

◆ operator bool()

CmdSeq::operator bool ( ) const
explicitnodiscard

Definition at line 104 of file CmdSeq.cpp.

◆ parseBinary()

void CmdSeq::parseBinary ( const std::filesystem::path & path)
protected

Definition at line 128 of file CmdSeq.cpp.

◆ parseKeyValuesHPP()

void CmdSeq::parseKeyValuesHPP ( const std::filesystem::path & path)
protected

Definition at line 162 of file CmdSeq.cpp.

◆ parseKeyValuesStrata()

void CmdSeq::parseKeyValuesStrata ( const std::filesystem::path & path)
protected

Definition at line 188 of file CmdSeq.cpp.

◆ setBinaryVersion()

void CmdSeq::setBinaryVersion ( bool isV02)

Definition at line 120 of file CmdSeq.cpp.

◆ setType()

void CmdSeq::setType ( Type type_)

Definition at line 112 of file CmdSeq.cpp.

Member Data Documentation

◆ sequences

std::vector<Sequence> toolpp::CmdSeq::sequences
protected

Definition at line 92 of file CmdSeq.h.

◆ type

Type toolpp::CmdSeq::type
protected

Definition at line 90 of file CmdSeq.h.

◆ version

float toolpp::CmdSeq::version
protected

Definition at line 91 of file CmdSeq.h.


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