You.i Engine
CYIAssetManifest::Node Class Reference

Detailed Description

Node for the manifest.

A node in the manifest can be either file or folder. A node that has children is a folder. A leaf node is a file.

#include <asset/YiAssetManifest.h>

Public Member Functions

 Node (const CYIString &name)
 
const CYIStringGetName () const
 
const std::vector< Node > & GetChildren () const
 
uint32_t GetApproximateCPUSize () const
 

Protected Member Functions

NodeAddChild (const Node &child)
 

Friends

class CYIAssetManifestParser
 

Constructor & Destructor Documentation

CYIAssetManifest::Node::Node ( const CYIString name)

Member Function Documentation

Node& CYIAssetManifest::Node::AddChild ( const Node child)
protected

Adds a child to this node. Returns a reference to the node added that was added to the collection of children.

uint32_t CYIAssetManifest::Node::GetApproximateCPUSize ( ) const

Calculates and returns the approximate number of bytes currently used by this manifest on the CPU.

Note
This function returns an approximate memory consumption as the exact memory consumption varies depending on the used C++ libraries and on the specific drivers used by the system.
const std::vector<Node>& CYIAssetManifest::Node::GetChildren ( ) const

Returns a collection of all children nodes.

const CYIString& CYIAssetManifest::Node::GetName ( ) const

Returns the name of this node.

Friends And Related Function Documentation

friend class CYIAssetManifestParser
friend

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