Skip to content
Snippets Groups Projects
Commit 3d1acea4 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: rename file path to remote path

parent 912a4290
No related branches found
No related tags found
1 merge request!20MAINT: rename file path to remote path
Pipeline #12665 failed
......@@ -703,7 +703,7 @@ public:
*/
auto CopyTo(ProtoEntity *target) -> void;
auto SetFilePath(const std::string &path) -> void;
auto SetRemotePath(const std::string &path) -> void;
inline auto HasFile() const -> bool { return !this->file_descriptor.local_path.empty(); }
auto SetFileTransmissionRegistrationId(const std::string &registration_id) -> void;
inline auto SetFileTransmissionId(FileTransmissionId *file_transmission_id) -> void {
......
......@@ -418,7 +418,7 @@ int caosdb_entity_entity_set_role(caosdb_entity_entity *entity, const char *role
int caosdb_entity_entity_set_name(caosdb_entity_entity *entity, const char *name);
int caosdb_entity_entity_set_description(caosdb_entity_entity *entity, const char *description);
int caosdb_entity_entity_set_local_path(caosdb_entity_entity *entity, const char *name);
int caosdb_entity_entity_set_file_path(caosdb_entity_entity *entity, const char *name);
int caosdb_entity_entity_set_remote_path(caosdb_entity_entity *entity, const char *name);
/**
* Set the entity's datatype by name, and whether it is a reference or a list.
*/
......
......@@ -264,7 +264,7 @@ auto Entity::SetDataType(const std::string &new_data_type, bool list_type) -> St
return SetDataType(DataType(new_data_type, list_type));
}
auto Entity::SetFilePath(const std::string &path) -> void {
auto Entity::SetRemotePath(const std::string &path) -> void {
this->wrapped->mutable_file_descriptor()->set_path(path);
}
......
......@@ -606,7 +606,7 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
*out = tmp;
return 0;
})
// CAOSDB_ENTITY_GET(file_path, GetFilePath()) TODO(henrik)
// CAOSDB_ENTITY_GET(remote_path, GetRemotePath()) TODO(henrik)
CAOSDB_ENTITY_GET(description, GetDescription())
ERROR_RETURN_CODE(GENERIC_ERROR,
int caosdb_entity_entity_get_datatype(caosdb_entity_entity *entity, char **name,
......@@ -1007,7 +1007,7 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
CAOSDB_ENTITY_SET(name, name, wrapped_entity->SetName(std::string(name));)
CAOSDB_ENTITY_SET(local_path, local_path,
return wrapped_entity->SetLocalPath(boost::filesystem::path(local_path));)
CAOSDB_ENTITY_SET(file_path, file_path, wrapped_entity->SetFilePath(std::string(file_path));)
CAOSDB_ENTITY_SET(remote_path, remote_path, wrapped_entity->SetRemotePath(std::string(remote_path));)
CAOSDB_ENTITY_SET(description, description,
wrapped_entity->SetDescription(std::string(description));)
ERROR_RETURN_CODE(GENERIC_ERROR,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment