Welcome to mirror list, hosted at ThFree Co, Russian Federation.

event_writer.hpp « client « stats - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a3f2e266f2707f2f8ad8baffcaccad5c7fab62ed (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
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once

#include "../../std/string.hpp"

#include "../common/wire.pb.h"

namespace stats
{

class EventWriter
{
public:
  EventWriter(string const & uniqueClientId, string const & dbPath);

  bool Store(Event const & e);

  ~EventWriter() {}

  template<class T>
  bool Write(T const & m)
  {
    // @todo implement
    return false;
  }

private:
  bool OpenDb(string const & path);

private:
//  unsigned int m_cnt;
//  void * m_db; // @todo Replace with ours impl
  string m_path;
//  unsigned long long m_uid;
};

}  // namespace stats