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 (const std::string &path)
 
 CmdSeq (Type type_)
 
 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::string &path) const
 

Protected Member Functions

void parseBinary (const std::string &path)
 
void parseKeyValuesStrata (const std::string &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 ( const std::string &  path)
explicit

Definition at line 62 of file CmdSeq.cpp.

◆ CmdSeq() [2/2]

CmdSeq::CmdSeq ( Type  type_)
explicit

Definition at line 95 of file CmdSeq.cpp.

Member Function Documentation

◆ bake() [1/2]

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

Definition at line 256 of file CmdSeq.cpp.

◆ bake() [2/2]

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

Definition at line 269 of file CmdSeq.cpp.

◆ bakeBinary()

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

Definition at line 195 of file CmdSeq.cpp.

◆ bakeKeyValuesStrata()

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

Definition at line 230 of file CmdSeq.cpp.

◆ getSequences() [1/2]

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

Definition at line 187 of file CmdSeq.cpp.

◆ getSequences() [2/2]

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

Definition at line 191 of file CmdSeq.cpp.

◆ getType()

CmdSeq::Type CmdSeq::getType ( ) const

Definition at line 103 of file CmdSeq.cpp.

◆ getVersion()

float CmdSeq::getVersion ( ) const

Definition at line 111 of file CmdSeq.cpp.

◆ operator bool()

CmdSeq::operator bool ( ) const
explicit

Definition at line 99 of file CmdSeq.cpp.

◆ parseBinary()

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

Definition at line 123 of file CmdSeq.cpp.

◆ parseKeyValuesStrata()

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

Definition at line 157 of file CmdSeq.cpp.

◆ setType()

void CmdSeq::setType ( Type  type_)

Definition at line 107 of file CmdSeq.cpp.

◆ setVersion()

void CmdSeq::setVersion ( bool  isV02)

Definition at line 115 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: