Public Member Functions | Public Attributes | List of all members
dai::Asset Struct Reference

Asset is identified with string key and can store arbitrary binary data. More...

#include <AssetManager.hpp>

Public Member Functions

 Asset ()=default
 
 Asset (std::string k)
 
std::string getRelativeUri ()
 

Public Attributes

std::uint32_t alignment = 1
 
std::vector< std::uint8_t > data
 
const std::string key
 

Detailed Description

Asset is identified with string key and can store arbitrary binary data.

Definition at line 15 of file AssetManager.hpp.

Constructor & Destructor Documentation

◆ Asset() [1/2]

dai::Asset::Asset ( )
default

◆ Asset() [2/2]

dai::Asset::Asset ( std::string  k)
inlineexplicit

Definition at line 17 of file AssetManager.hpp.

Member Function Documentation

◆ getRelativeUri()

std::string dai::Asset::getRelativeUri ( )

Definition at line 11 of file AssetManager.cpp.

Member Data Documentation

◆ alignment

std::uint32_t dai::Asset::alignment = 1

Definition at line 20 of file AssetManager.hpp.

◆ data

std::vector<std::uint8_t> dai::Asset::data

Definition at line 19 of file AssetManager.hpp.

◆ key

const std::string dai::Asset::key

Definition at line 18 of file AssetManager.hpp.


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


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