1 # $Id: store.rb,v 1.1 2011/12/02 01:46:54 machan Exp $
2
3 require 'tmdoc/tmstd'
4 require 'tmdoc/constant'
5 require 'tmdoc/model/core/physical'
6 require 'tmdoc/model/core/logical'
7
8
9 module TmDoc
10
11 module Model::Core
12
13 class Store < Model::Abstraction::Store
14 attr_reader :files
15
16
17 def initialize(files)
18 ASSERT.kind_of files, MCP::SetOfFile
19
20 @files = files
21 end
22
23
24 def file_names
25 names = @files.map { |file| file.name }
26
27 ASSERT.kind_of names, Array
28 end
29
30
31 def print
32 LOG::Debug.log "======== Core Model ========"
33 for file in self.files.sort
34 file.print 1
35 LOG::Debug.log
36 end
37 LOG::Debug.log
38
39 nil
40 end
41 end
42
43 end # TmDoc::Model::Core
44
45 end # TmDoc