File: twitter_data.h

package info (click to toggle)
simdjson 4.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 31,396 kB
  • sloc: cpp: 195,760; ansic: 20,954; sh: 1,126; python: 885; makefile: 47; ruby: 25; javascript: 13
file content (34 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (5)
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
#ifndef TWITTER_DATA_H
#define TWITTER_DATA_H

#include <string>
#include <vector>

// Simplified Twitter structures for benchmarking

struct User {
  uint64_t id;
  std::string name;
  std::string screen_name;
  std::string location;
  std::string description;
  bool verified;
  uint64_t followers_count;
  uint64_t friends_count;
  uint64_t statuses_count;
};

struct Status {
  std::string created_at;
  uint64_t id;
  std::string text;
  User user;
  uint64_t retweet_count;
  uint64_t favorite_count;
};

struct TwitterData {
  std::vector<Status> statuses;
};

#endif // TWITTER_DATA_H