YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::FileChecker Class Reference

#include <FileChecker.hpp>

Collaboration diagram for yap::FileChecker:

List of all members.

Classes

struct  MyFile

Public Types

typedef struct
yap::FileChecker::MyFile 
MyFileType
typedef boost::filesystem::path PathType
typedef std::vector< PathTypeVPathType
typedef collection::Array
< FileChecker * > 
VFilesType
typedef collection::Array
< MyFileType * > 
VFileType

Public Member Functions

 FileChecker (PathType path)
 FileChecker (String filename)
 FileChecker (String filename, String md5, size_t filesize)
 ~FileChecker ()
void SetFilename (String filename)
void SetMd5 (String md5)
void SetDlEnd (bool dl)
String GetFilename ()
size_t GetFilesize ()
String GetMd5 ()
VFilesType GetVfile ()
UInt64 GetSizeDownloaded ()
UInt16 GetFileDownloaded ()
bool GetDlEnd ()
VFileTypeGetVFileToDl ()
void Launch ()
void Launch (String sourcepath)
void SendFileToDownload (FileChecker *fc)
bool Update (FileChecker *fc)

Private Member Functions

 DISALLOW_COPY (FileChecker)
void GetFileToDownload ()
bool Compare (FileChecker *const c, FileChecker *const s)
String VectorFind (VFilesType vp, FileChecker *p)
bool UpdateFTP (FileChecker *fc)
bool LocalUpdate (FileChecker *fc)

Private Attributes

VFilesType vfile_
VFileType vstring_
PathType path_
String filename_
size_t filesize_
String md5_
UInt64 sizeDownloaded_
UInt16 fileDownloaded_
VFileType vfiletodl_
bool dlend_
String sourcepath_

Detailed Description

Definition at line 20 of file FileChecker.hpp.


Member Typedef Documentation

typedef boost::filesystem::path yap::FileChecker::PathType

Definition at line 32 of file FileChecker.hpp.

typedef std::vector<PathType> yap::FileChecker::VPathType

Definition at line 33 of file FileChecker.hpp.


Constructor & Destructor Documentation

yap::FileChecker::FileChecker ( PathType  path)

Definition at line 5 of file FileChecker.cpp.

Here is the call graph for this function:

yap::FileChecker::FileChecker ( String  filename)

Definition at line 20 of file FileChecker.cpp.

yap::FileChecker::FileChecker ( String  filename,
String  md5,
size_t  filesize 
)

Definition at line 34 of file FileChecker.cpp.

yap::FileChecker::~FileChecker ( )

Definition at line 57 of file FileChecker.cpp.

Here is the call graph for this function:


Member Function Documentation

bool yap::FileChecker::Compare ( FileChecker *const  c,
FileChecker *const  s 
)
private

Definition at line 126 of file FileChecker.cpp.

Here is the call graph for this function:

yap::FileChecker::DISALLOW_COPY ( FileChecker  )
private
bool yap::FileChecker::GetDlEnd ( )

Definition at line 121 of file FileChecker.cpp.

Here is the caller graph for this function:

UInt16 yap::FileChecker::GetFileDownloaded ( )

Definition at line 116 of file FileChecker.cpp.

Here is the caller graph for this function:

String yap::FileChecker::GetFilename ( )

Definition at line 86 of file FileChecker.cpp.

Here is the caller graph for this function:

size_t yap::FileChecker::GetFilesize ( )

Definition at line 96 of file FileChecker.cpp.

void yap::FileChecker::GetFileToDownload ( )
private

Definition at line 133 of file FileChecker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

String yap::FileChecker::GetMd5 ( )

Definition at line 91 of file FileChecker.cpp.

Here is the caller graph for this function:

UInt64 yap::FileChecker::GetSizeDownloaded ( )

Definition at line 111 of file FileChecker.cpp.

Here is the caller graph for this function:

FileChecker::VFilesType yap::FileChecker::GetVfile ( )

Definition at line 101 of file FileChecker.cpp.

Here is the caller graph for this function:

FileChecker::VFileType & yap::FileChecker::GetVFileToDl ( )

Definition at line 106 of file FileChecker.cpp.

Here is the caller graph for this function:

void yap::FileChecker::Launch ( )

Definition at line 213 of file FileChecker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::FileChecker::Launch ( String  sourcepath)

Definition at line 219 of file FileChecker.cpp.

Here is the call graph for this function:

bool yap::FileChecker::LocalUpdate ( FileChecker fc)
private

Definition at line 434 of file FileChecker.cpp.

Here is the call graph for this function:

void yap::FileChecker::SendFileToDownload ( FileChecker fc)

Definition at line 226 of file FileChecker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::FileChecker::SetDlEnd ( bool  dl)

Definition at line 81 of file FileChecker.cpp.

Here is the caller graph for this function:

void yap::FileChecker::SetFilename ( String  filename)

Definition at line 71 of file FileChecker.cpp.

void yap::FileChecker::SetMd5 ( String  md5)

Definition at line 76 of file FileChecker.cpp.

bool yap::FileChecker::Update ( FileChecker fc)

Definition at line 316 of file FileChecker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool yap::FileChecker::UpdateFTP ( FileChecker fc)
private

Definition at line 254 of file FileChecker.cpp.

Here is the call graph for this function:

String yap::FileChecker::VectorFind ( VFilesType  vp,
FileChecker p 
)
private

Definition at line 188 of file FileChecker.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

bool yap::FileChecker::dlend_
private

Definition at line 77 of file FileChecker.hpp.

UInt16 yap::FileChecker::fileDownloaded_
private

Definition at line 75 of file FileChecker.hpp.

String yap::FileChecker::filename_
private

Definition at line 71 of file FileChecker.hpp.

size_t yap::FileChecker::filesize_
private

Definition at line 72 of file FileChecker.hpp.

String yap::FileChecker::md5_
private

Definition at line 73 of file FileChecker.hpp.

PathType yap::FileChecker::path_
private

Definition at line 70 of file FileChecker.hpp.

UInt64 yap::FileChecker::sizeDownloaded_
private

Definition at line 74 of file FileChecker.hpp.

String yap::FileChecker::sourcepath_
private

Definition at line 79 of file FileChecker.hpp.

VFilesType yap::FileChecker::vfile_
private

Definition at line 68 of file FileChecker.hpp.

VFileType yap::FileChecker::vfiletodl_
private

Definition at line 76 of file FileChecker.hpp.

VFileType yap::FileChecker::vstring_
private

Definition at line 69 of file FileChecker.hpp.


The documentation for this class was generated from the following files: