summaryrefslogtreecommitdiffhomepage
path: root/whiteboard.h
blob: be89f4bd540638fb3e43bf19d6f739e6e53178c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <mutex>
#include <string>

#include "config.h"
#include "storage.h"

class Whiteboard
{
public:
 Whiteboard();
 int run(int argc, char* argv[]);
 std::string generate_id();
 uint32_t checksum32(const std::string& s);

private:
 Config m_config;
 Storage m_storage;
 std::mutex m_storage_mutex;
 
 void storage_cleanup();
};