Am5os
 All Classes Functions Pages
protobuf_image_wrapper.h
1 //
2 // Projectname: amos-ss16-proj5
3 //
4 // Copyright (c) 2016 de.fau.cs.osr.amos2016.gruppe5
5 //
6 // This file is part of the AMOS Project 2016 @ FAU
7 // (Friedrich-Alexander University Erlangen-Nürnberg)
8 //
9 // This program is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU Affero General Public License as
11 // published by the Free Software Foundation, either version 3 of the
12 // License, or (at your option) any later version.
13 //
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU Affero General Public License for more details.
18 //
19 // You should have received a copy of the GNU Affero General Public
20 // License along with this program. If not, see
21 // <http://www.gnu.org/licenses/>.
22 //
23 
24 #include "protofiles/CameraImage.pb.h"
25 
27 
28 public:
35  bool ParseFromArray (unsigned char* file, int protobuf_file_size);
36 
42  const ::std::string& GetImagePayload();
43 
49  bool HasImagePayload();
50 
51 
57  int GetImageWidth();
58 
64  bool HasImageWidth();
65 
71  int GetImageHeight();
72 
78  bool HasImageHeight();
79 
80 private:
81 
83 
84 };
bool ParseFromArray(unsigned char *file, int protobuf_file_size)
Definition: protobuf_image_wrapper.cpp:27
bool HasImageWidth()
Definition: protobuf_image_wrapper.cpp:43
const ::std::string & GetImagePayload()
Definition: protobuf_image_wrapper.cpp:31
int GetImageHeight()
Definition: protobuf_image_wrapper.cpp:47
Definition: CameraImage.pb.h:43
bool HasImageHeight()
Definition: protobuf_image_wrapper.cpp:51
int GetImageWidth()
Definition: protobuf_image_wrapper.cpp:39
Definition: protobuf_image_wrapper.h:26
bool HasImagePayload()
Definition: protobuf_image_wrapper.cpp:35