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