void Frame<FrameTag, frame_tag, frame_is_inertial>::WriteToMessage( not_null<serialization::Frame*> const message) { std::string const& tag_type_full_name = google::protobuf::GetEnumDescriptor<Tag>()->full_name(); message->set_tag_type_fingerprint(Fingerprint(tag_type_full_name)); message->set_tag(tag); message->set_is_inertial(is_inertial); }
void Frame<FrameTag, frame_tag, frame_is_inertial>::ReadFromMessage( serialization::Frame const& message) { std::string const& tag_type_full_name = google::protobuf::GetEnumDescriptor<Tag>()->full_name(); CHECK_EQ(Fingerprint(tag_type_full_name), message.tag_type_fingerprint()) << tag_type_full_name; CHECK_EQ(tag, message.tag()); CHECK_EQ(is_inertial, message.is_inertial()); }
void dng_camera_profile::Stub () { (void) Fingerprint (); dng_hue_sat_map nullTable; fHueSatDeltas1 = nullTable; fHueSatDeltas2 = nullTable; fLookTable = nullTable; fToneCurve.SetInvalid (); fWasStubbed = true; }
inline void ReadFrameFromMessage( serialization::Frame const& message, google::protobuf::EnumValueDescriptor const*& enum_value_descriptor, bool& is_inertial) { // Look at the enumeration types nested in serialization::Frame for one that // matches our fingerprint. const google::protobuf::Descriptor* frame_descriptor = serialization::Frame::descriptor(); enum_value_descriptor = nullptr; for (int i = 0; i < frame_descriptor->enum_type_count(); ++i) { const google::protobuf::EnumDescriptor* enum_type_descriptor = frame_descriptor->enum_type(i); std::string const& enum_type_full_name = enum_type_descriptor->full_name(); if (Fingerprint(enum_type_full_name) == message.tag_type_fingerprint()) { enum_value_descriptor = enum_type_descriptor->FindValueByNumber(message.tag()); break; } } CHECK_NOTNULL(enum_value_descriptor); is_inertial = message.is_inertial(); }
/** Performs a name lookup using this method, and calls cb whether it succeeded or not. */ virtual void nameLookup(TransferDataPtr *ptrRef, const URI &uri, const Callback &cb) { cb(Fingerprint(), std::string(), false); }
Fingerprint Fingerprint::trustedClients() { return Fingerprint(kTrustedClientsFilename); }
Fingerprint Fingerprint::trustedServers() { return Fingerprint(kTrustedServersFilename); }
Fingerprint Fingerprint::local() { return Fingerprint(kLocalFilename); }