Panda3D
Public Member Functions | Public Attributes | Static Public Attributes

dirresource Class Reference

Inheritance diagram for dirresource:
resource treeresource

List of all members.

Public Member Functions

def __init__
def __cmp__
def __repr__
def asBinary
def asFilter
def asSource
def contents
def contents
def dependencies

Public Attributes

 name
 path
 typ

Static Public Attributes

int RECURSIVE = 0

Detailed Description

A sublcass for a directory.

   Generally transformed to a list of files through
    contents() and filtered by file extensions or resource type.
    Note that contents() is smart enough to regard a .py and .pyc
    as the same resource. 

Constructor & Destructor Documentation

def __init__ (   self,
  name,
  fullname = None 
)

Reimplemented in treeresource.


Member Function Documentation

def __cmp__ (   self,
  other 
) [inherited]
def __repr__ (   self) [inherited]
def asBinary (   self) [inherited]
Return self in binary form.

   Base implementation returns self

Reimplemented in moduleresource.

def asFilter (   self)
Create a tocfilter based on self.

   Pure virtual

Reimplemented from resource.

def asSource (   self) [inherited]
Return self in source form.

   Base implementation returns self

Reimplemented in scriptresource, and moduleresource.

def contents (   self,
  prefix = '' 
)
Return the list of (typed) resources in self.name
def contents (   self) [inherited]
A list of resources within this resource.

   Overridable.
   Base implementation returns [self]
def dependencies (   self) [inherited]
A list of resources this resource requires.

   Overridable.
   Base implementation returns []

Reimplemented in scriptresource, binaryresource, and pkgresource.


Member Data Documentation

name [inherited]
path [inherited]
int RECURSIVE = 0 [static]

Reimplemented in treeresource.

typ [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties