OpenTTD Source: FiosItem Struct Reference

OpenTTD Source 15.3

Public Member Functions | Data Fields
FiosItem Struct Reference

Deals with finding savegames. More...

`#include <fios.h>`

## Public Member Functions
bool | operator< (const FiosItem &other) const
| Compare two FiosItem's.

## Data Fields
FiosType | type
int64_t | mtime
EncodedString | title
std::string | name

## Detailed Description

Deals with finding savegames.

Definition at line 78 of file fios.h.

## Member Function Documentation

## ◆ operator<()

bool FiosItem::operator< | ( | const FiosItem & | other | ) | const

Compare two FiosItem's.

Used with sort when sorting the file list.

Parameters

  other | The FiosItem to compare to.

Returns
  for ascending order: returns true if da < db. Vice versa for descending order.

Definition at line 48 of file fios.cpp.

References EncodedString::GetDecodedString(), and StrNaturalCompare().

## Field Documentation

## ◆ mtime

int64_t FiosItem::mtime

Definition at line 80 of file fios.h.

## ◆ name

std::string FiosItem::name

Definition at line 82 of file fios.h.

## ◆ title

EncodedString FiosItem::title

Definition at line 81 of file fios.h.

## ◆ type

FiosType FiosItem::type

Definition at line 79 of file fios.h.

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

- src/fios.h
- src/fios.cpp