The Battle for Wesnoth  1.15.0+dev
Public Member Functions | Public Attributes | List of all members
filesystem::file_tree_checksum Struct Reference

#include <filesystem.hpp>

Public Member Functions

 file_tree_checksum ()
 
 file_tree_checksum (const config &cfg)
 
void write (config &cfg) const
 
void reset ()
 
bool operator== (const file_tree_checksum &rhs) const
 
bool operator!= (const file_tree_checksum &rhs) const
 

Public Attributes

std::size_t nfiles
 
std::size_t sum_size
 
std::time_t modified
 

Detailed Description

Definition at line 234 of file filesystem.hpp.

Constructor & Destructor Documentation

◆ file_tree_checksum() [1/2]

filesystem::file_tree_checksum::file_tree_checksum ( )

Definition at line 109 of file filesystem_common.cpp.

◆ file_tree_checksum() [2/2]

filesystem::file_tree_checksum::file_tree_checksum ( const config cfg)
explicit

Definition at line 113 of file filesystem_common.cpp.

Member Function Documentation

◆ operator!=()

bool filesystem::file_tree_checksum::operator!= ( const file_tree_checksum rhs) const
inline

◆ operator==()

bool filesystem::file_tree_checksum::operator== ( const file_tree_checksum rhs) const

Definition at line 127 of file filesystem_common.cpp.

References modified, nfiles, and sum_size.

◆ reset()

void filesystem::file_tree_checksum::reset ( )
inline

Definition at line 239 of file filesystem.hpp.

Referenced by filesystem::data_tree_checksum().

◆ write()

void filesystem::file_tree_checksum::write ( config cfg) const

Definition at line 120 of file filesystem_common.cpp.

References modified, nfiles, and sum_size.

Referenced by game_config::config_cache::read_cache().

Member Data Documentation

◆ modified

std::time_t filesystem::file_tree_checksum::modified

Definition at line 242 of file filesystem.hpp.

Referenced by filesystem::get_files_in_dir(), operator==(), and write().

◆ nfiles

std::size_t filesystem::file_tree_checksum::nfiles

◆ sum_size

std::size_t filesystem::file_tree_checksum::sum_size

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