OSDN Git Service

Please enter the commit message for your changes. Lines starting
[eos/hostdependX86LINUX64.git] / lib / pdbFile.rb
1 #!/usr/bin/ruby -I /home/people/risachan/Eos/lib/X86LINUX64
2 require 'molvieRuby'
3 require 'molvie'
4 require "tk"
5
6 class PdbFile
7         def file_read
8                 puts"ok"
9                 info= MolvieRuby::MolvieInfo.new
10                 @@info = info
11                 puts"ok2"
12                 @@info.In = Tk.getOpenFile
13                 puts info.In
14                 @@info.fptIn =MolvieRuby.fopen(@@info.In,"r")
15                 puts "neko\n"
16                 if(info.fptIn == nil)
17                         puts("PDBFile Not Opend:",@@info.In)
18                 else 
19                         puts("Opened PDBFile:", @@info.In)
20                 end
21                 MolvieRuby::lmolviePDBread(info.fptIn)
22         end
23         
24         def get_pdb
25         puts @@info.In
26         return @@info
27         end
28
29
30 end