Class: MxxRu::Cpp::Target::GlobalObjPlacementInfo
- Inherits:
-
Object
- Object
- MxxRu::Cpp::Target::GlobalObjPlacementInfo
- Defined in:
- lib/mxx_ru/cpp/target.rb
Overview
Description of obj_placement object installed. Used to store global obj_placement.
Instance Attribute Summary collapse
-
#placement ⇒ Object
readonly
Global obj_placement.
-
#who ⇒ Object
readonly
Who was set obj_placement.
Instance Method Summary collapse
-
#change(a_placement, a_who) ⇒ Object
Change option value.
-
#initialize ⇒ GlobalObjPlacementInfo
constructor
A new instance of GlobalObjPlacementInfo.
Constructor Details
#initialize ⇒ GlobalObjPlacementInfo
Returns a new instance of GlobalObjPlacementInfo.
420 421 422 423 |
# File 'lib/mxx_ru/cpp/target.rb', line 420 def initialize @placement = nil @who = nil end |
Instance Attribute Details
#placement ⇒ Object (readonly)
Global obj_placement.
416 417 418 |
# File 'lib/mxx_ru/cpp/target.rb', line 416 def placement @placement end |
#who ⇒ Object (readonly)
Who was set obj_placement.
418 419 420 |
# File 'lib/mxx_ru/cpp/target.rb', line 418 def who @who end |
Instance Method Details
#change(a_placement, a_who) ⇒ Object
Change option value. If placement already set, exception thrown.
427 428 429 430 431 432 433 434 435 436 437 438 439 |
# File 'lib/mxx_ru/cpp/target.rb', line 427 def change( a_placement, a_who ) if nil != a_placement && nil != @placement raise MxxRu::GlobalOptionConflictEx.new( "global_obj_placement", @placement.class.name, @who, a_placement.class.name, a_who ) end @placement = a_placement @who = a_who end |