nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
text.h
Go to the documentation of this file.
1#ifndef NANOMMO_CONTENT_TEXT_H_
2#define NANOMMO_CONTENT_TEXT_H_
3
4#include <string>
5#include <string_view>
6
7#include "absl/status/status.h"
8#include "absl/status/statusor.h"
9#include "google/protobuf/message.h"
10
11namespace nanommo {
12
13/// Parses protobuf's text format into the message, or says on which line it
14/// went wrong, such as at a field the message doesn't have.
15absl::Status ParseText(std::string_view text,
16 google::protobuf::Message& message);
17
18absl::StatusOr<std::string> ReadFile(const std::string& path);
19
20} // namespace nanommo
21
22#endif // NANOMMO_CONTENT_TEXT_H_
Definition chat.cc:9
absl::Status ParseText(std::string_view text, google::protobuf::Message &message)
Definition text.cc:32
absl::StatusOr< std::string > ReadFile(const std::string &path)
Definition text.cc:43