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 CYIString & | GetName () const |
| const std::vector< Node > & | GetChildren () const |
| uint32_t | GetApproximateCPUSize () const |
Protected Member Functions | |
| Node & | AddChild (const Node &child) |
Friends | |
| class | CYIAssetManifestParser |
| CYIAssetManifest::Node::Node | ( | const CYIString & | name | ) |
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.
| 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.
|
friend |