annotate mayachemtools/docs/modules/txt/FileIO.txt @ 9:ab29fa5c8c1f draft default tip

Uploaded
author deepakjadmin
date Thu, 15 Dec 2016 14:18:03 -0500
parents 73ae111cf86f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
1 NAME
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
2 FileIO
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
3
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
4 SYNOPSIS
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
5 use FileIO::FileIO;
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
6
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
7 use FileIO::FileIO qw(:all);
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
8
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
9 DESCRIPTION
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
10 FIleIO class provides following methods:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
11
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
12 new, Close, Open, SetMode
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
13
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
14 FleIO class serves as a base class for all classes involved in file IO.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
15 It is derived from ObjectProperty base class which provides methods not
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
16 explicitly defined in Atom or ObjectProperty class using Perl's AUTOLOAD
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
17 functionality. These methods are generated on-the-fly for a specified
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
18 object property:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
19
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
20 Set<PropertyName>(<PropertyValue>);
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
21 $PropertyValue = Get<PropertyName>();
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
22 Delete<PropertyName>();
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
23
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
24 METHODS
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
25 new
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
26 $NewFileIO = new FileIO(%NamesAndValues);
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
27
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
28 Using specified *FileIO* property names and values hash, new method
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
29 creates a new object and returns a reference to a newly created
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
30 FileIO object. By default, the following properties are initialized:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
31
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
32 Name = '';
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
33 Mode = 'Read';
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
34 Status = 0;
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
35 FileHandle = '';
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
36
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
37 Close
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
38 $FileIO->Close();
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
39
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
40 Close open file and returns *FileIO*.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
41
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
42 Open
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
43 $FileIO->Open();
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
44
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
45 Opens the file using file *Name* and *Mode* and returns *FileIO*.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
46
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
47 SetMode
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
48 $FileIO->SetMode($Mode);
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
49
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
50 Sets up file *Mode* and returns *FileIO* Default *Mode* value:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
51 *Read*. Supported *Mode* values:
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
52
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
53 Read, Write, Append, <, >, >>, r, w, a
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
54
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
55 SetName
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
56 $FileIO->SetName($Name);
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
57
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
58 Sets up file *Name* and returns *FileIO*.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
59
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
60 AUTHOR
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
61 Manish Sud <msud@san.rr.com>
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
62
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
63 SEE ALSO
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
64 MoleculeFileIO.pm, MDLMolFileIO.pm, SDFileIO.pm
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
65
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
66 COPYRIGHT
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
67 Copyright (C) 2015 Manish Sud. All rights reserved.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
68
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
69 This file is part of MayaChemTools.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
70
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
71 MayaChemTools is free software; you can redistribute it and/or modify it
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
72 under the terms of the GNU Lesser General Public License as published by
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
73 the Free Software Foundation; either version 3 of the License, or (at
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
74 your option) any later version.
73ae111cf86f Uploaded
deepakjadmin
parents:
diff changeset
75