CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Static Public Attributes
FileExportPlugin.FileExportPlugin Class Reference
Inheritance diagram for FileExportPlugin.FileExportPlugin:

Public Member Functions

def __init__
 
def checkOption
 
def export
 
def fileTypes
 
def getOption
 
def listOptions
 
def pluginName
 
def setOption
 

Public Attributes

 options
 

Static Public Attributes

tuple file_types = ()
 
dictionary option_types = {}
 
string plugin_name = ''
 

Detailed Description

Definition at line 1 of file FileExportPlugin.py.

Constructor & Destructor Documentation

def FileExportPlugin.FileExportPlugin.__init__ (   self)

Definition at line 5 of file FileExportPlugin.py.

5 
6  def __init__(self):
7  self.options={}
8  for k,v in self.option_types.items():
9  self.options[k]=v[2]

Member Function Documentation

def FileExportPlugin.FileExportPlugin.checkOption (   self,
  option,
  value 
)

Definition at line 29 of file FileExportPlugin.py.

Referenced by FileExportPlugin.FileExportPlugin.setOption().

29 
30  def checkOption(self,option,value):
31  return True
def FileExportPlugin.FileExportPlugin.export (   self,
  data,
  filename,
  filetype 
)

Definition at line 32 of file FileExportPlugin.py.

32 
33  def export(self,data,filename,filetype):
34  raise NotImplemented
def FileExportPlugin.FileExportPlugin.fileTypes (   self)

Definition at line 13 of file FileExportPlugin.py.

References FileExportPlugin.FileExportPlugin.file_types, and DOTExport.DotExport.file_types.

13 
14  def fileTypes(self):
15  return self.file_types
def FileExportPlugin.FileExportPlugin.getOption (   self,
  option 
)

Definition at line 26 of file FileExportPlugin.py.

26 
27  def getOption(self,option):
28  return self.options.get(option,None)
def FileExportPlugin.FileExportPlugin.listOptions (   self)

Definition at line 16 of file FileExportPlugin.py.

References FileExportPlugin.FileExportPlugin.option_types, and DOTExport.DotExport.option_types.

16 
17  def listOptions(self):
18  return self.option_types
def FileExportPlugin.FileExportPlugin.pluginName (   self)

Definition at line 10 of file FileExportPlugin.py.

References FileExportPlugin.FileExportPlugin.plugin_name, and DOTExport.DotExport.plugin_name.

10 
11  def pluginName(self):
12  return self.plugin_name
def FileExportPlugin.FileExportPlugin.setOption (   self,
  option,
  value 
)

Definition at line 19 of file FileExportPlugin.py.

References FileExportPlugin.FileExportPlugin.checkOption(), FileExportPlugin.FileExportPlugin.options, and DOTExport.DotProducer.options.

19 
20  def setOption(self,option,value):
21  check = self.checkOption(option,value)
22  if check==True:
23  self.options[option]=value
24  else:
25  raise check

Member Data Documentation

tuple FileExportPlugin.FileExportPlugin.file_types = ()
static

Definition at line 4 of file FileExportPlugin.py.

Referenced by FileExportPlugin.FileExportPlugin.fileTypes().

dictionary FileExportPlugin.FileExportPlugin.option_types = {}
static

Definition at line 2 of file FileExportPlugin.py.

Referenced by FileExportPlugin.FileExportPlugin.listOptions().

FileExportPlugin.FileExportPlugin.options

Definition at line 6 of file FileExportPlugin.py.

Referenced by betterConfigParser.BetterConfigParser.__updateDict(), betterConfigParser.BetterConfigParser.checkInput(), DOTExport.DotExport.export(), FileExportPlugin.FileExportPlugin.setOption(), and DOTExport.DotExport.write_output().

string FileExportPlugin.FileExportPlugin.plugin_name = ''
static

Definition at line 3 of file FileExportPlugin.py.

Referenced by FileExportPlugin.FileExportPlugin.pluginName().