Files
fluxengine/lib/proto.h
2021-05-16 18:11:40 +02:00

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