SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
PackFile.h File Reference
#include <functional>
#include <memory>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
#include <sourcepp/Macros.h>
#include <tsl/htrie_map.h>
#include "Attribute.h"
#include "Entry.h"
#include "Options.h"
Include dependency graph for PackFile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  vpkpp::PackFile
class  vpkpp::PackFileReadOnly

Namespaces

namespace  vpkpp

Macros

#define VPKPP_REGISTER_PACKFILE_OPEN(extension, function)
#define VPKPP_REGISTER_PACKFILE_OPEN_EXECUTABLE(function)

Variables

constexpr std::array< std::string_view, 3 > vpkpp::EXECUTABLE_EXTENSIONS

Macro Definition Documentation

◆ VPKPP_REGISTER_PACKFILE_OPEN

#define VPKPP_REGISTER_PACKFILE_OPEN ( extension,
function )
Value:
static inline const OpenFactoryFunction& SOURCEPP_UNIQUE_NAME(packFileOpenTypeFactoryFunction) = PackFile::registerOpenExtensionForTypeFactory(extension, function)
#define SOURCEPP_UNIQUE_NAME(base)
Adds the current line number to the given base.
Definition Macros.h:56

Definition at line 256 of file PackFile.h.

◆ VPKPP_REGISTER_PACKFILE_OPEN_EXECUTABLE

#define VPKPP_REGISTER_PACKFILE_OPEN_EXECUTABLE ( function)
Value:
static inline const OpenFactoryFunction& SOURCEPP_UNIQUE_NAME(packFileOpenExecutable0TypeFactoryFunction) = PackFile::registerOpenExtensionForTypeFactory(vpkpp::EXECUTABLE_EXTENSIONS[0], function); \
static inline const OpenFactoryFunction& SOURCEPP_UNIQUE_NAME(packFileOpenExecutable1TypeFactoryFunction) = PackFile::registerOpenExtensionForTypeFactory(vpkpp::EXECUTABLE_EXTENSIONS[1], function); \
static inline const OpenFactoryFunction& SOURCEPP_UNIQUE_NAME(packFileOpenExecutable2TypeFactoryFunction) = PackFile::registerOpenExtensionForTypeFactory(vpkpp::EXECUTABLE_EXTENSIONS[2], function)
constexpr std::array< std::string_view, 3 > EXECUTABLE_EXTENSIONS
Definition PackFile.h:22

Definition at line 259 of file PackFile.h.