Changeset 1737

Show
Ignore:
Timestamp:
11/07/08 03:18:03 (2 months ago)
Author:
Chuck.Esterbrook
Message:

Added Node.addOnValues property while it was still on my mind.

Location:
cobra/trunk/Source
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/Node.cobra

    r1730 r1737  
    180180        get serialNum as int 
    181181 
     182        get addOnValues as Dictionary<of String, Object> 
     183                """ 
     184                Returns a dictionary, initially empty, of named values that add-ons 
     185                can use to store data related to the node. 
     186                """ 
     187 
    182188        pro superNode as INode? 
    183189 
     
    417423                        var = value 
    418424 
     425        var _addOnValues as Dictionary<of String, Object>? 
     426         
     427        get addOnValues as Dictionary<of String, Object> 
     428                if _addOnValues is nil 
     429                        _addOnValues = Dictionary<of String, Object>() 
     430                return _addOnValues to ! 
    419431 
    420432        ## 
  • cobra/trunk/Source/Types.cobra

    r1718 r1737  
    366366        var _didBindImp as bool 
    367367        get didBindImp from var 
     368 
     369        var _addOnValues as Dictionary<of String, Object>? 
     370         
     371        get addOnValues as Dictionary<of String, Object> 
     372                if _addOnValues is nil 
     373                        _addOnValues = Dictionary<of String, Object>() 
     374                return _addOnValues to ! 
    368375 
    369376        get hasError as bool