Meki Cherkaoui | 97e7a59 | 2012-04-14 02:50:06 -0700 | [diff] [blame^] | 1 | |
| 2 | /* |
| 3 | * _Body is an array of componenets |
| 4 | */ |
| 5 | var ExcludeComponent = function ExcludeComponent(_Body) { |
| 6 | |
| 7 | //TODO Check BODY is an Array of componenets. |
| 8 | |
| 9 | this.Body = _Body |
| 10 | }; |
| 11 | |
| 12 | ExcludeComponent.prototype.decode = function( decoder) { |
| 13 | body = decoder.readBinaryElement(this.getElementLabel()); |
| 14 | }; |
| 15 | |
| 16 | ExcludeComponent.prototype.encode = function(encoder) { |
| 17 | encoder.writeElement(this.getElementLabel(), body); |
| 18 | }; |
| 19 | |
| 20 | ExcludeComponent.prototype.getElementLabel = function() { return CCNProtocolDTags.Component; }; |
| 21 | |