ed2kfile.cpp File Reference

Implementation of ED2KFile class. More...

#include <hn/hnprec.h>
#include "ed2kfile.h"
#include "opcodes.h"
#include "ed2k.h"
#include "tag.h"
#include <hn/sharedfile.h>

Go to the source code of this file.


Functions

std::ostream & operator<< (std::ostream &o, const ED2KFile &f)
boost::shared_ptr< ED2KFilemakeED2KFile (SharedFile *sf, MetaData *md, HashSetBase *hs, bool useCompleteInfo)

Detailed Description

Implementation of ED2KFile class.

Definition in file ed2kfile.cpp.


Function Documentation

std::ostream& operator<< std::ostream &  o,
const ED2KFile f
 

Definition at line 55 of file ed2kfile.cpp.

References CT_FILENAME, CT_FILESIZE, CT_FILETYPE, FL_COMPLETE_ID, FL_COMPLETE_PORT, FL_PARTIAL_ID, and FL_PARTIAL_PORT.

boost::shared_ptr<ED2KFile> makeED2KFile SharedFile *  sf,
MetaData *  md,
HashSetBase *  hs,
bool  useCompleteInfo
 

Parameters:
sf SharedFile to refer to
md MetaData corresponding to the SharedFile
hs ED2KHashSet corresponding to this file
useCompletEInfo Whether to include "complete" information
Returns:
Newly allocated ED2KFile object

Definition at line 112 of file ed2kfile.cpp.

Referenced by ServerList::publishFile(), and ServerList::publishFiles().