Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct ManagerGuiResult
- {
- enum ManagerResultType
- {
- RESULT_UNKNOWN = -1,
- RESULT_COLOR_PLY = 0,
- RESULT_HEATMAP_PLY = 1,
- };
- struct GUIDefect
- {
- std::vector<float> locationMM;
- float radiusMM;
- std::string name;
- friend aquifi::networking::NetworkBuffer& operator<<(aquifi::networking::NetworkBuffer& stream, const GUIDefect & t)
- {
- stream << t.locationMM << t.radiusMM << t.name;
- return stream;
- }
- //! DeSerialization
- friend aquifi::networking::NetworkBuffer& operator>>(aquifi::networking::NetworkBuffer& stream, GUIDefect & t)
- {
- stream >> t.locationMM >> t.radiusMM >> t.name;
- return stream;
- }
- };
- //! The session name.
- std::string sessionName = "Undefined";
- //! Identifier to describe the group of camers used to obtain this result
- std::string cameraGroup = "Undefined";
- //! the item type
- std::string itemType = "Unknown";
- //! final status (accept/reject)
- std::string resultStatus = "";
- std::vector<GUIDefect> defects;
- ManagerResultType resultType = RESULT_UNKNOWN;
- //! The ply location.
- std::string path = "";
- //! Serialization
- friend aquifi::networking::NetworkBuffer& operator<<(aquifi::networking::NetworkBuffer& stream, const ManagerGuiResult & t)
- {
- stream << t.sessionName << t.cameraGroup << t.resultType << t.path << t.itemType << t.resultStatus << t.defects;
- return stream;
- }
- //! DeSerialization
- friend aquifi::networking::NetworkBuffer& operator>>(aquifi::networking::NetworkBuffer& stream, ManagerGuiResult & t)
- {
- stream >> t.sessionName >> t.cameraGroup >> t.resultType >> t.path >> t.itemType >> t.resultStatus;
- if (stream.getReadSize() > 0)
- stream >> t.defects;
- return stream;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement