24#ifndef BINARY_LOG_GTIDS_GTID_INCLUDED
25#define BINARY_LOG_GTIDS_GTID_INCLUDED
Represents a MySQL Global Transaction Identifier.
Definition: gtid.h:41
virtual ~Gtid()
Destroy the Gtid object.
virtual std::string to_string() const
Gets a human readable representation of this transaction identifier.
Definition: gtid.cpp:37
virtual bool operator==(const Gtid &other) const
Compares two identifiers and returns whether they match or not.
Definition: gtid.cpp:52
Gtid(const Uuid &uuid, gno_t gno)
Construct a new Gtid object.
Definition: gtid.cpp:30
Uuid m_uuid
Definition: gtid.h:47
virtual Gtid & operator=(const Gtid &other)
Copy assignment.
Definition: gtid.cpp:43
virtual gno_t get_gno() const
Get the sequence number of this transaction identifier.
Definition: gtid.cpp:34
gno_t m_gno
Definition: gtid.h:48
virtual const Uuid & get_uuid() const
Get the uuid of this transaction identifier.
Definition: gtid.cpp:35
virtual bool operator!=(const Gtid &other) const
Compares two identifiers and returns whether they are different.
Definition: gtid.cpp:56
static const std::string SEPARATOR_UUID_SEQNO
In 'UUID:SEQNO', this is the ':'.
Definition: gtid.h:44
std::int64_t gno_t
Definition: global.h:34
This is a POD.
Definition: uuid.h:61