Drake
protobuf.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <string>
5 
6 #include "google/protobuf/io/zero_copy_stream_impl.h"
7 
8 namespace drake {
9 
10 /// Returns a self-closing FileInputStream for the file at the given @p path,
11 /// or else throws std::runtime_error.
12 std::unique_ptr<google::protobuf::io::FileInputStream>
13 MakeFileInputStreamOrThrow(const std::string& path);
14 
15 } // namespace drake
Definition: automotive_demo.cc:88
std::unique_ptr< google::protobuf::io::FileInputStream > MakeFileInputStreamOrThrow(const std::string &path)
Returns a self-closing FileInputStream for the file at the given path, or else throws std::runtime_er...
Definition: protobuf.cc:10