Xorn
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
xorn.geda.clib.DirectorySource Class Reference

Source object representing a directory of symbol files. More...

Public Member Functions

def __init__
 
def list
 Scan the directory for symbols. More...
 
def get
 Get symbol data for a given symbol name. More...
 

Public Attributes

 directory
 Path to directory. More...
 
 recursive
 Whether to recurse into subdirectories. More...
 

Detailed Description

Source object representing a directory of symbol files.

This class allows a directory which contains one or more symbol files in gEDA format to be used as a component source. Only files ending in ".sym" (case insensitive) are considered to be symbol files. Symbol files with filenames starting with a period "." are ignored.

Definition at line 105 of file clib.py.

Constructor & Destructor Documentation

def xorn.geda.clib.DirectorySource.__init__ (   self,
  directory,
  recursive 
)

Definition at line 106 of file clib.py.

Member Function Documentation

def xorn.geda.clib.DirectorySource.get (   self,
  symbol 
)

Get symbol data for a given symbol name.

Definition at line 135 of file clib.py.

def xorn.geda.clib.DirectorySource.list (   self)

Scan the directory for symbols.

Definition at line 114 of file clib.py.

Member Data Documentation

xorn.geda.clib.DirectorySource.directory

Path to directory.

Definition at line 108 of file clib.py.

xorn.geda.clib.DirectorySource.recursive

Whether to recurse into subdirectories.

Definition at line 110 of file clib.py.


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