midday-commander
Loading...
Searching...
No Matches
State.h
Go to the documentation of this file.
1//
2// Created by Vojtěch Pašek on 13.05.2023.
3//
4
5#ifndef MIDDAY_COMMANDER_STATE_H
6#define MIDDAY_COMMANDER_STATE_H
7
8#include <set>
9
10#include "entry/Entry.h"
11#include "Utility.h"
12
16class State {
17private:
21 struct cmpEntry {
22 bool operator() (const std::shared_ptr<Entry>& lhs, const std::shared_ptr<Entry>& rhs) const {
23 return lhs->path < rhs->path;
24 }
25 };
26public:
27 bool running = true;
28 std::set<std::shared_ptr<Entry>, cmpEntry> selected;
29};
30
31
32#endif //MIDDAY_COMMANDER_STATE_H
Holds the global state of the Application.
Definition: State.h:16
std::set< std::shared_ptr< Entry >, cmpEntry > selected
Definition: State.h:28
bool running
Definition: State.h:27
Custom comparator for State.selected.
Definition: State.h:21
bool operator()(const std::shared_ptr< Entry > &lhs, const std::shared_ptr< Entry > &rhs) const
Definition: State.h:22