dtDAL::ResourceTreeNode Class Reference

A tree node used when indexing resources. More...

#include <resourcetreenode.h>

List of all members.

Public Member Functions

 ResourceTreeNode ()
 ResourceTreeNode (const std::string &nodeText, const std::string &fullCategory, ResourceDescriptor *resource=NULL)
 ResourceTreeNode (const ResourceTreeNode &toCopy)
ResourceTreeNodeoperator= (const ResourceTreeNode &toAssign)
bool operator== (const ResourceTreeNode &toCompare) const
bool operator> (const ResourceTreeNode &toCompare) const
bool operator< (const ResourceTreeNode &toCompare) const
bool isCategory () const
 
Returns:
true if this tree node represents a category, false for a resource.

const std::string & getNodeText () const
 
Returns:
the display text for the tree node.

const std::string & getFullCategory () const
 
Returns:
the full category for this tree node, not including the datatype.

const ResourceDescriptorgetResource () const
 
Returns:
the resource descriptor.


Detailed Description

A tree node used when indexing resources.

Constructor & Destructor Documentation

dtDAL::ResourceTreeNode::ResourceTreeNode (  )  [inline]

dtDAL::ResourceTreeNode::ResourceTreeNode ( const std::string &  nodeText,
const std::string &  fullCategory,
ResourceDescriptor resource = NULL 
) [inline]

dtDAL::ResourceTreeNode::ResourceTreeNode ( const ResourceTreeNode toCopy  )  [inline]


Member Function Documentation

ResourceTreeNode& dtDAL::ResourceTreeNode::operator= ( const ResourceTreeNode toAssign  )  [inline]

bool dtDAL::ResourceTreeNode::operator== ( const ResourceTreeNode toCompare  )  const [inline]

bool dtDAL::ResourceTreeNode::operator> ( const ResourceTreeNode toCompare  )  const [inline]

bool dtDAL::ResourceTreeNode::operator< ( const ResourceTreeNode toCompare  )  const [inline]

bool dtDAL::ResourceTreeNode::isCategory (  )  const [inline]

Returns:
true if this tree node represents a category, false for a resource.

const std::string& dtDAL::ResourceTreeNode::getNodeText (  )  const [inline]

Returns:
the display text for the tree node.

const std::string& dtDAL::ResourceTreeNode::getFullCategory (  )  const [inline]

Returns:
the full category for this tree node, not including the datatype.

const ResourceDescriptor& dtDAL::ResourceTreeNode::getResource (  )  const [inline]

Returns:
the resource descriptor.

This descriptor is dataless if the node is a category.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008