Class: MxxRu::Cpp::CppSourceFile

Inherits:
Object
  • Object
show all
Defined in:
lib/mxx_ru/cpp/source_file.rb

Overview

Class, describing one C/C++ source file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_name, a_compiler_options) ⇒ CppSourceFile

Returns a new instance of CppSourceFile.



41
42
43
44
45
46
47
48
49
# File 'lib/mxx_ru/cpp/source_file.rb', line 41

def initialize( file_name, a_compiler_options )
  @name = file_name
  if a_compiler_options
    @compiler_options = a_compiler_options.clone
  else
    @compiler_options = Array.new
  end
  @depends = Array.new
end

Instance Attribute Details

#compiler_optionsObject (readonly)

Compiler options list for that file.



37
38
39
# File 'lib/mxx_ru/cpp/source_file.rb', line 37

def compiler_options
  @compiler_options
end

#dependsObject (readonly)

A list of files, given file is depentent from.



39
40
41
# File 'lib/mxx_ru/cpp/source_file.rb', line 39

def depends
  @depends
end

#nameObject (readonly)

File name (string).



35
36
37
# File 'lib/mxx_ru/cpp/source_file.rb', line 35

def name
  @name
end