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