Sha256: d5cb0074308e6325b5acb31c9f44fe655ad653581234afb21cfe4f809c915e6a

Contents?: true

Size: 1.16 KB

Versions: 11

Compression:

Stored size: 1.16 KB

Contents

require 'rgen/metamodel_builder'
require 'rgen/metamodel_builder/data_types'

module Cxxproject

  module BakeryModel
    extend RGen::MetamodelBuilder::ModuleExtension

    class ModelElement < RGen::MetamodelBuilder::MMBase
      abstract
      has_attr 'line_number', Integer do
        annotation :details => {'internal' => 'true'}
      end
      has_attr 'file_name', String do
        annotation :details => {'internal' => 'true'}
      end
    end

    class Project < ModelElement
      has_attr 'name', String, :defaultValueLiteral => ""
      has_attr 'config', String, :defaultValueLiteral => ""
    end
    class Exclude < ModelElement
      has_attr 'name', String, :defaultValueLiteral => ""
      has_attr 'config', String, :defaultValueLiteral => ""
    end
    class Collection < ModelElement
      has_attr 'name', String, :defaultValueLiteral => ""
      contains_many 'project', Project, 'collection'
      contains_many 'exclude', Exclude, 'collection'
    end

    module Project::ClassModule
      def isFound
        @isFound ||= false 
      end
      def found
        @isFound = true 
      end
    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bake-toolkit-1.0.11 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.10 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.9 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.8 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.7 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.6 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.5 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.4 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.3 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.2 lib/bakery/model/metamodel.rb
bake-toolkit-1.0.1 lib/bakery/model/metamodel.rb