Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (37 sloc) 0.83 kb
// src/glob/glob.hpp
//
//
#ifndef URPC_GLOB_HPP
#define URPC_GLOB_HPP
#include <fstream>
#include <google/protobuf/message.h>
namespace urpc {
class iglob {
public:
/** Open a glob file for reading
* \param filename file to open for reading
*/
iglob (const std::string &);
/** Read a protobuf from the file
* \param message destination of data
* \return TRUE if additional messages are available
*/
bool read (google::protobuf::Message &);
private:
std::fstream file;
};
class oglob {
public:
/** Open a file for writing
* \param filename file to write
*/
oglob (const std::string &);
/** Write a protobuf from the file
* \param message data to write
*/
void write (const google::protobuf::Message &);
private:
std::fstream file;
};
}
#endif // URPC_GLOB_HPP
Jump to Line
Something went wrong with that request. Please try again.