Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
3d1acea4
Commit
3d1acea4
authored
3 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: rename file path to remote path
parent
912a4290
No related branches found
No related tags found
1 merge request
!20
MAINT: rename file path to remote path
Pipeline
#12665
failed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
include/caosdb/entity.h
+1
-1
1 addition, 1 deletion
include/caosdb/entity.h
include/ccaosdb.h
+1
-1
1 addition, 1 deletion
include/ccaosdb.h
src/caosdb/entity.cpp
+1
-1
1 addition, 1 deletion
src/caosdb/entity.cpp
src/ccaosdb.cpp
+2
-2
2 additions, 2 deletions
src/ccaosdb.cpp
with
5 additions
and
5 deletions
include/caosdb/entity.h
+
1
−
1
View file @
3d1acea4
...
...
@@ -703,7 +703,7 @@ public:
*/
auto
CopyTo
(
ProtoEntity
*
target
)
->
void
;
auto
Set
Fil
ePath
(
const
std
::
string
&
path
)
->
void
;
auto
Set
Remot
ePath
(
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
{
...
...
This diff is collapsed.
Click to expand it.
include/ccaosdb.h
+
1
−
1
View file @
3d1acea4
...
...
@@ -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_
fil
e_path
(
caosdb_entity_entity
*
entity
,
const
char
*
name
);
int
caosdb_entity_entity_set_
remot
e_path
(
caosdb_entity_entity
*
entity
,
const
char
*
name
);
/**
* Set the entity's datatype by name, and whether it is a reference or a list.
*/
...
...
This diff is collapsed.
Click to expand it.
src/caosdb/entity.cpp
+
1
−
1
View file @
3d1acea4
...
...
@@ -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
::
Set
Fil
ePath
(
const
std
::
string
&
path
)
->
void
{
auto
Entity
::
Set
Remot
ePath
(
const
std
::
string
&
path
)
->
void
{
this
->
wrapped
->
mutable_file_descriptor
()
->
set_path
(
path
);
}
...
...
This diff is collapsed.
Click to expand it.
src/ccaosdb.cpp
+
2
−
2
View file @
3d1acea4
...
...
@@ -606,7 +606,7 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
*
out
=
tmp
;
return
0
;
})
// CAOSDB_ENTITY_GET(
fil
e_path, Get
Fil
ePath()) TODO(henrik)
// CAOSDB_ENTITY_GET(
remot
e_path, Get
Remot
ePath()) 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
(
fil
e_path
,
fil
e_path
,
wrapped_entity
->
Set
Fil
ePath
(
std
::
string
(
fil
e_path
));)
CAOSDB_ENTITY_SET
(
remot
e_path
,
remot
e_path
,
wrapped_entity
->
Set
Remot
ePath
(
std
::
string
(
remot
e_path
));)
CAOSDB_ENTITY_SET
(
description
,
description
,
wrapped_entity
->
SetDescription
(
std
::
string
(
description
));)
ERROR_RETURN_CODE
(
GENERIC_ERROR
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment