Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122375581
reader.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 17, 11:48
Size
1 KB
Mime Type
text/x-python
Expires
Sat, Jul 19, 11:48 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27473990
Attached To
R2010 molecular_data_processing
reader.py
View Options
#!/usr/bin/env python
# -*- coding: utf-8 -*-
" todo:: documentation for module containing class Reader"
##########################################################################
##########################################################################
class
FileReader
(
object
):
"""
class FileReader: a general class for different file readers
"""
# ------------------------------------------------------------------ #
# Constructors/Destructors #
# ------------------------------------------------------------------ #
def
__init__
(
self
,
filename
):
"""__init__: the readers objects are initialize with the name of the object they are designed to read as members """
# Members ---------------------- #
# string name_of_object_to_read
self
.
filename
=
filename
def
__del__
(
self
):
"""__del__: not implemented """
pass
# ------------------------------------------------------------------ #
# Methods #
# ------------------------------------------------------------------ #
# public:
def
read
(
self
,
filter_reader
,
key_string
=
None
):
"""read: interface function """
pass
##########################################################################
if
__name__
==
'__main__'
:
test
=
Reader
()
Event Timeline
Log In to Comment