mirror of
https://github.com/logos-co/logos-cpp-sdk.git
synced 2026-08-31 01:31:10 +00:00
feat: LogosResult (#14)
* Add LogosResult * Add documentation for complex types * Add get type util function * Add more shorthand functions * Add bool support * Provide more shorthand functions * Throw exception on bad access * Fix typo in doc
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "logos_types.h"
|
||||
|
||||
QDataStream& operator<<(QDataStream& out, const LogosResult& result) {
|
||||
out << result.success << result.value;
|
||||
return out;
|
||||
}
|
||||
|
||||
QDataStream& operator>>(QDataStream& in, LogosResult& result) {
|
||||
in >> result.success >> result.value;
|
||||
return in;
|
||||
}
|
||||
Reference in New Issue
Block a user