test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
GuiBrowsers
python
FileExportPlugin.py
Go to the documentation of this file.
1
class
FileExportPlugin
(object):
2
option_types={}
#option: (name, type, default, extra...)
3
plugin_name=
''
4
file_types=()
5
def
__init__
(self):
6
self.
options
={}
7
for
k,v
in
self.option_types.items():
8
self.
options
[k]=v[2]
9
10
def
pluginName
(self):
11
return
self.
plugin_name
12
13
def
fileTypes
(self):
14
return
self.
file_types
15
16
def
listOptions
(self):
17
return
self.
option_types
18
19
def
setOption
(self,option,value):
20
check = self.
checkOption
(option,value)
21
if
check==
True
:
22
self.
options
[option]=value
23
else
:
24
raise
check
25
26
def
getOption
(self,option):
27
return
self.options.get(option,
None
)
28
29
def
checkOption
(self,option,value):
30
return
True
31
32
def
export
(self,data,filename,filetype):
33
raise
NotImplemented
FileExportPlugin.FileExportPlugin.pluginName
def pluginName
Definition:
FileExportPlugin.py:10
FileExportPlugin.FileExportPlugin.plugin_name
string plugin_name
Definition:
FileExportPlugin.py:3
FileExportPlugin.FileExportPlugin.option_types
dictionary option_types
Definition:
FileExportPlugin.py:2
FileExportPlugin.FileExportPlugin.setOption
def setOption
Definition:
FileExportPlugin.py:19
FileExportPlugin.FileExportPlugin.getOption
def getOption
Definition:
FileExportPlugin.py:26
FileExportPlugin.FileExportPlugin.listOptions
def listOptions
Definition:
FileExportPlugin.py:16
FileExportPlugin.FileExportPlugin.fileTypes
def fileTypes
Definition:
FileExportPlugin.py:13
FileExportPlugin.FileExportPlugin.checkOption
def checkOption
Definition:
FileExportPlugin.py:29
FileExportPlugin.FileExportPlugin.__init__
def __init__
Definition:
FileExportPlugin.py:5
FileExportPlugin.FileExportPlugin.file_types
tuple file_types
Definition:
FileExportPlugin.py:4
FileExportPlugin.FileExportPlugin
Definition:
FileExportPlugin.py:1
FileExportPlugin.FileExportPlugin.options
options
Definition:
FileExportPlugin.py:6
FileExportPlugin.FileExportPlugin.export
def export
Definition:
FileExportPlugin.py:32
Generated for CMSSW Reference Manual by
1.8.5