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_STRATA }

Public Member Functions

 CmdSeq (Type type_)
 CmdSeq (const std::filesystem::path &cmdSeqPath)
 operator bool () const
Type getType () const
void setType (Type type_)
float getVersion () const
void setVersion (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 parseKeyValuesStrata (const std::filesystem::path &path)
std::vector< std::byte > bakeBinary () 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_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 258 of file CmdSeq.cpp.

◆ bake() [2/2]

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

Definition at line 271 of file CmdSeq.cpp.

◆ bakeBinary()

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

Definition at line 197 of file CmdSeq.cpp.

◆ bakeKeyValuesStrata()

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

Definition at line 232 of file CmdSeq.cpp.

◆ getSequences() [1/2]

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

Definition at line 189 of file CmdSeq.cpp.

◆ getSequences() [2/2]

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

Definition at line 193 of file CmdSeq.cpp.

◆ getType()

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

Definition at line 105 of file CmdSeq.cpp.

◆ getVersion()

float CmdSeq::getVersion ( ) const
nodiscard

Definition at line 113 of file CmdSeq.cpp.

◆ operator bool()

CmdSeq::operator bool ( ) const
explicitnodiscard

Definition at line 101 of file CmdSeq.cpp.

◆ parseBinary()

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

Definition at line 125 of file CmdSeq.cpp.

◆ parseKeyValuesStrata()

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

Definition at line 159 of file CmdSeq.cpp.

◆ setType()

void CmdSeq::setType ( Type type_)

Definition at line 109 of file CmdSeq.cpp.

◆ setVersion()

void CmdSeq::setVersion ( bool isV02)

Definition at line 117 of file CmdSeq.cpp.

Member Data Documentation

◆ sequences

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

Definition at line 87 of file CmdSeq.h.

◆ type

Type toolpp::CmdSeq::type
protected

Definition at line 85 of file CmdSeq.h.

◆ version

float toolpp::CmdSeq::version
protected

Definition at line 86 of file CmdSeq.h.


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