The Battle for Wesnoth  1.19.1+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 275 of file filesystem.hpp.

Constructor & Destructor Documentation

◆ file_tree_checksum() [1/2]

filesystem::file_tree_checksum::file_tree_checksum ( )

Definition at line 224 of file filesystem_common.cpp.

◆ file_tree_checksum() [2/2]

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

Definition at line 228 of file filesystem_common.cpp.

Member Function Documentation

◆ operator!=()

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

Definition at line 285 of file filesystem.hpp.

References operator==().

◆ operator==()

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

Definition at line 242 of file filesystem_common.cpp.

References modified, nfiles, and sum_size.

Referenced by operator!=().

◆ reset()

void filesystem::file_tree_checksum::reset ( )

Definition at line 280 of file filesystem.hpp.

References modified, nfiles, and sum_size.

Referenced by filesystem::data_tree_checksum().

◆ write()

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

Definition at line 235 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 283 of file filesystem.hpp.

Referenced by filesystem::get_files_in_dir(), operator==(), reset(), 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: