mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
24 lines
795 B
C++
24 lines
795 B
C++
#ifndef PROTO_H
|
|
#define PROTO_H
|
|
|
|
#include <google/protobuf/message.h>
|
|
#include "lib/config.pb.h"
|
|
|
|
extern void setRange(RangeProto* range, const std::string& data);
|
|
|
|
typedef std::pair<google::protobuf::Message*, const google::protobuf::FieldDescriptor*> ProtoField;
|
|
|
|
extern ProtoField resolveProtoPath(google::protobuf::Message* message, const std::string& path);
|
|
extern void setProtoFieldFromString(ProtoField& protoField, const std::string& value);
|
|
extern void setProtoByString(google::protobuf::Message* message, const std::string& path, const std::string& value);
|
|
|
|
extern std::set<unsigned> iterate(const RangeProto& range);
|
|
|
|
extern std::map<std::string, const google::protobuf::FieldDescriptor*>
|
|
findAllProtoFields(google::protobuf::Message* message);
|
|
|
|
extern ConfigProto config;
|
|
|
|
#endif
|
|
|