NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
collection.hpp File Reference

Provides structures and functions to manage containers of distinct but related assets. More...

#include <map>
#include "NNL/common/fixed_type.hpp"
#include "NNL/common/io.hpp"

Go to the source code of this file.

Namespaces

namespace  nnl
namespace  nnl::collection
 Provides structures and functions to manage containers of distinct but related assets.

Typedefs

using nnl::collection::Collection = std::vector<Buffer>
 A container for related but distinct assets.
using nnl::collection::CollectionView = std::vector<BufferView>
 A non-owning view of an asset collection.

Functions

bool nnl::collection::IsOfType (BufferView buffer)
 Tests if the provided file is an asset collection.
Collection nnl::collection::Import (BufferView buffer)
 Parses a binary file and converts it into a Collection object.
CollectionView nnl::collection::ImportView (BufferView buffer)
 Parses a binary file and converts it into a CollectionView object.
Buffer nnl::collection::Export (const Collection &asset_collection)
 Converts an asset collection to a binary file representation.

Detailed Description

Provides structures and functions to manage containers of distinct but related assets.

See also
nnl::collection::Collection
nnl::collection::IsOfType
nnl::collection::ImportView
nnl::collection::Import
nnl::collection::Export