persistent_data.hpp (601c71aef4ac54e28933bc6e022c7e1f6e8bf1e8) | persistent_data.hpp (ecd6a3a20ab128ae9d3e356d6250695800dc13be) |
---|---|
1#pragma once 2 3#include <app.hpp> 4#include <boost/beast/http/fields.hpp> 5#include <boost/container/flat_map.hpp> 6#include <boost/uuid/uuid.hpp> 7#include <boost/uuid/uuid_generators.hpp> 8#include <boost/uuid/uuid_io.hpp> --- 29 unchanged lines hidden (view full) --- 38 // Make sure we aren't writing stale sessions 39 persistent_data::SessionStore::getInstance().applySessionTimeouts(); 40 if (persistent_data::SessionStore::getInstance().needsWrite()) 41 { 42 writeData(); 43 } 44 } 45 | 1#pragma once 2 3#include <app.hpp> 4#include <boost/beast/http/fields.hpp> 5#include <boost/container/flat_map.hpp> 6#include <boost/uuid/uuid.hpp> 7#include <boost/uuid/uuid_generators.hpp> 8#include <boost/uuid/uuid_io.hpp> --- 29 unchanged lines hidden (view full) --- 38 // Make sure we aren't writing stale sessions 39 persistent_data::SessionStore::getInstance().applySessionTimeouts(); 40 if (persistent_data::SessionStore::getInstance().needsWrite()) 41 { 42 writeData(); 43 } 44 } 45 |
46 ConfigFile(const ConfigFile&) = delete; 47 ConfigFile(ConfigFile&&) = delete; 48 ConfigFile& operator=(const ConfigFile&) = delete; 49 ConfigFile& operator=(ConfigFile&&) = delete; 50 |
|
46 // TODO(ed) this should really use protobuf, or some other serialization 47 // library, but adding another dependency is somewhat outside the scope of 48 // this application for the moment 49 void readData() 50 { 51 std::ifstream persistentFile(filename); 52 uint64_t fileRevision = 0; 53 if (persistentFile.is_open()) --- 243 unchanged lines hidden --- | 51 // TODO(ed) this should really use protobuf, or some other serialization 52 // library, but adding another dependency is somewhat outside the scope of 53 // this application for the moment 54 void readData() 55 { 56 std::ifstream persistentFile(filename); 57 uint64_t fileRevision = 0; 58 if (persistentFile.is_open()) --- 243 unchanged lines hidden --- |