Project

General

Profile

Task #3430

Design the Abstraction to Represent a File Manifet

Added by Michael Sweatt over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Start date:
01/25/2016
Due date:
% Done:

0%

Estimated time:

Description

class FileManifest {
name : Name; // T name of the file
data_packet_size: size_t; // The size of each data packet in this file
catalog: Container; // A catalog of names of data packets with implicit digests
digest_type : DigestAlgorithm; // Type of the digest used
}

  • This represents a value type
  • Should support wireEncode and wireDecode
#1

Updated by Michael Sweatt over 4 years ago

Created the an initial proposal for the interface (http://gerrit.named-data.net/#/c/2679/)
Design choices:

  • Only allow specification of the name of the file, the size of the data packets, and digest type upon initial construction

  • Expose a const reference to the catalog to simplify the interface at the expense of encapsulation

  • Expose minimal manipulators for the catalog (with the understanding that we can add more if they seem useful later)

  • No virtual methods, this type should not be extended, if we see a need later, we can provide it

#2

Updated by Michael Sweatt over 4 years ago

  • Status changed from New to Closed

Merged to master

Also available in: Atom PDF