TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
UpdateFetcher::AppliedFileEntry Struct Reference

Public Member Functions

 AppliedFileEntry (std::string const &name_, std::string const &hash_, State state_, uint64 timestamp_)
 
std::string GetStateAsString () const
 

Static Public Member Functions

static State StateConvert (std::string const &state)
 
static std::string StateConvert (State const state)
 

Public Attributes

std::string const name
 
std::string const hash
 
State const state
 
uint64 const timestamp
 

Constructor & Destructor Documentation

UpdateFetcher::AppliedFileEntry::AppliedFileEntry ( std::string const name_,
std::string const hash_,
State  state_,
uint64  timestamp_ 
)
inline
57  : name(name_), hash(hash_), state(state_), timestamp(timestamp_) { }
uint64 const timestamp
Definition: UpdateFetcher.h:65
std::string const hash
Definition: UpdateFetcher.h:61
State const state
Definition: UpdateFetcher.h:63
std::string const name
Definition: UpdateFetcher.h:59

Member Function Documentation

std::string UpdateFetcher::AppliedFileEntry::GetStateAsString ( ) const
inline
78  {
79  return StateConvert(state);
80  }
static State StateConvert(std::string const &state)
Definition: UpdateFetcher.h:67
State const state
Definition: UpdateFetcher.h:63

+ Here is the caller graph for this function:

static State UpdateFetcher::AppliedFileEntry::StateConvert ( std::string const state)
inlinestatic
68  {
69  return (state == "RELEASED") ? RELEASED : ARCHIVED;
70  }
Definition: UpdateFetcher.h:51
Definition: UpdateFetcher.h:50
State const state
Definition: UpdateFetcher.h:63

+ Here is the caller graph for this function:

static std::string UpdateFetcher::AppliedFileEntry::StateConvert ( State const  state)
inlinestatic
73  {
74  return (state == RELEASED) ? "RELEASED" : "ARCHIVED";
75  }
Definition: UpdateFetcher.h:50
State const state
Definition: UpdateFetcher.h:63

Member Data Documentation

std::string const UpdateFetcher::AppliedFileEntry::hash
std::string const UpdateFetcher::AppliedFileEntry::name
State const UpdateFetcher::AppliedFileEntry::state
uint64 const UpdateFetcher::AppliedFileEntry::timestamp

The documentation for this struct was generated from the following file: