Skip to content
Snippets Groups Projects

F files

Merged Timm Fitschen requested to merge f-files into dev
4 files
+ 120
57
Compare changes
  • Side-by-side
  • Inline

Files

+ 15
0
@@ -33,6 +33,7 @@
#include "caosdb/entity/v1alpha1/main.pb.h" // for RepeatedPtrField, Message
#include "caosdb/message_code.h" // for get_message_code, Messag...
#include "google/protobuf/util/json_util.h" // for MessageToJsonString, Jso...
#include "boost/filesystem/path.hpp" // for path
namespace caosdb::entity {
using caosdb::entity::v1alpha1::IdResponse;
@@ -41,6 +42,20 @@ using ProtoProperty = caosdb::entity::v1alpha1::Property;
using ProtoEntity = caosdb::entity::v1alpha1::Entity;
using caosdb::entity::v1alpha1::FileTransmissionId;
class FileDescriptor {
public:
auto GetEntityId() const -> const std::string &;
auto GetLocalPath() const -> const boost::filesystem::path &;
auto GetRemotePath() const -> const std::string &;
auto GetSize() const -> long long;
private:
std::string entity_id;
std::string remote_path;
std::string local_path;
long long size;
};
/**
* Messages convey information about the state and result of transactions.
*
Loading