Classes | Public Member Functions | Protected Attributes | List of all members
dai::Assets Class Reference

#include <Assets.hpp>

Inheritance diagram for dai::Assets:
Inheritance graph
[legend]

Classes

struct  AssetInternal
 

Public Member Functions

 DEPTHAI_SERIALIZE (Assets, map)
 
AssetView get (const std::string &key)
 
std::vector< std::pair< std::string, AssetView > > getAll ()
 
bool has (const std::string &key)
 
void setStorage (std::uint8_t *ps)
 

Protected Attributes

std::unordered_map< std::string, AssetInternalmap
 
std::uint8_t * pStorageStart = nullptr
 

Detailed Description

Definition at line 22 of file Assets.hpp.

Member Function Documentation

◆ DEPTHAI_SERIALIZE()

dai::Assets::DEPTHAI_SERIALIZE ( Assets  ,
map   
)

◆ get()

AssetView dai::Assets::get ( const std::string &  key)
inline

Definition at line 43 of file Assets.hpp.

◆ getAll()

std::vector<std::pair<std::string, AssetView> > dai::Assets::getAll ( )
inline

Definition at line 48 of file Assets.hpp.

◆ has()

bool dai::Assets::has ( const std::string &  key)
inline

Definition at line 39 of file Assets.hpp.

◆ setStorage()

void dai::Assets::setStorage ( std::uint8_t *  ps)
inline

Definition at line 35 of file Assets.hpp.

Member Data Documentation

◆ map

std::unordered_map<std::string, AssetInternal> dai::Assets::map
protected

Definition at line 32 of file Assets.hpp.

◆ pStorageStart

std::uint8_t* dai::Assets::pStorageStart = nullptr
protected

Definition at line 24 of file Assets.hpp.


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


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:20