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
7f6b77f0
Verified
Commit
7f6b77f0
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: insert delete
parent
5aeaf5d6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
ENH: Allow insertion and deletion of single entities
Pipeline
#10900
passed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#10905
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/caosdb/message_code.h
+4
-4
4 additions, 4 deletions
include/caosdb/message_code.h
proto
+1
-1
1 addition, 1 deletion
proto
with
5 additions
and
5 deletions
include/caosdb/message_code.h
+
4
−
4
View file @
7f6b77f0
...
...
@@ -39,15 +39,15 @@ enum MessageCode {
UNKNOWN
=
caosdb
::
entity
::
v1alpha1
::
MessageCode
::
MESSAGE_CODE_UNKNOWN
,
ENTITY_DOES_NOT_EXIST
=
caosdb
::
entity
::
v1alpha1
::
MessageCode
::
MESSAGE_CODE_ENTITY_DOES_NOT_EXIST
,
ENTITY_HAS_NO_PROPERTIES
=
caosdb
::
entity
::
v1alpha1
::
MessageCode
::
MESSAGE_CODE_ENTITY_HAS_NO_PROPERTIES
,
};
[[
nodiscard
]]
inline
auto
get_message_code
(
int
code
)
noexcept
->
MessageCode
{
// TODO(tf) smarter, less forgot-it-prone implementation
static
MessageCode
all_codes
[]
=
{
MessageCode
::
UNSPECIFIED
,
MessageCode
::
UNKNOWN
,
MessageCode
::
ENTITY_DOES_NOT_EXIST
,
};
MessageCode
::
UNSPECIFIED
,
MessageCode
::
UNKNOWN
,
MessageCode
::
ENTITY_DOES_NOT_EXIST
,
MessageCode
::
ENTITY_HAS_NO_PROPERTIES
};
for
(
MessageCode
known_code
:
all_codes
)
{
if
(
known_code
==
code
)
{
...
...
This diff is collapsed.
Click to expand it.
proto
@
8febce70
Compare
d6f21977
...
8febce70
Subproject commit
d6f2197731060a66934a9d45825cc9635a31131a
Subproject commit
8febce70a96b3322d61a74e4567ade8b33f75369
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