Proactive Safety Framework  1.0
protobuf_util.h File Reference

Go to the source code of this file.

Classes

struct  TimeStamp
 
struct  Result
 
struct  FieldData
 

Enumerations

enum  Type {
  VALUE_TYPE_INT32 , VALUE_TYPE_INT64 , VALUE_TYPE_UINT32 , VALUE_TYPE_UINT64 ,
  VALUE_TYPE_FLOAT , VALUE_TYPE_DOUBLE , VALUE_TYPE_STRING , VALUE_TYPE_BOOL ,
  VALUE_TYPE_TIMESTAMP , VALUE_TYPE_ERROR , VALUE_TYPE_MAPVALUE
}
 

Functions

Result getFieldValue (const google::protobuf::Message &, char *)
 
bool getFieldPresence (const google::protobuf::Message &, char *)
 
void setFieldValue (google::protobuf::Message &, char *, FieldData)
 
bool checkProtobufVersion ()
 
Result getFieldValueFromFile (google::protobuf::Message &, char *, char *)
 

Enumeration Type Documentation

◆ Type

enum Type
Enumerator
VALUE_TYPE_INT32 
VALUE_TYPE_INT64 
VALUE_TYPE_UINT32 
VALUE_TYPE_UINT64 
VALUE_TYPE_FLOAT 
VALUE_TYPE_DOUBLE 
VALUE_TYPE_STRING 
VALUE_TYPE_BOOL 
VALUE_TYPE_TIMESTAMP 
VALUE_TYPE_ERROR 
VALUE_TYPE_MAPVALUE 
22  {
34  } Type;
Type
Definition: protobuf_util.h:22
@ VALUE_TYPE_TIMESTAMP
Definition: protobuf_util.h:31
@ VALUE_TYPE_FLOAT
Definition: protobuf_util.h:27
@ VALUE_TYPE_INT64
Definition: protobuf_util.h:24
@ VALUE_TYPE_BOOL
Definition: protobuf_util.h:30
@ VALUE_TYPE_ERROR
Definition: protobuf_util.h:32
@ VALUE_TYPE_DOUBLE
Definition: protobuf_util.h:28
@ VALUE_TYPE_UINT32
Definition: protobuf_util.h:25
@ VALUE_TYPE_STRING
Definition: protobuf_util.h:29
@ VALUE_TYPE_UINT64
Definition: protobuf_util.h:26
@ VALUE_TYPE_MAPVALUE
Definition: protobuf_util.h:33
@ VALUE_TYPE_INT32
Definition: protobuf_util.h:23

Function Documentation

◆ checkProtobufVersion()

bool checkProtobufVersion ( )

◆ getFieldPresence()

bool getFieldPresence ( const google::protobuf::Message &  ,
char *   
)

◆ getFieldValue()

Result getFieldValue ( const google::protobuf::Message &  ,
char *   
)

◆ getFieldValueFromFile()

Result getFieldValueFromFile ( google::protobuf::Message &  ,
char *  ,
char *   
)

◆ setFieldValue()

void setFieldValue ( google::protobuf::Message &  ,
char *  ,
FieldData   
)