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
63da43ad
Commit
63da43ad
authored
3 years ago
by
florian
Browse files
Options
Downloads
Patches
Plain Diff
DRAFT: Declare setters and getters
parent
99f81191
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!12
F consolidation
,
!9
Draft: API: remove UniqueResult, lower-case at, size for ResultSet
,
!8
ENH: Add retrieval and queries to Extern C interface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/ccaosdb.h
+60
-21
60 additions, 21 deletions
include/ccaosdb.h
with
60 additions
and
21 deletions
include/ccaosdb.h
+
60
−
21
View file @
63da43ad
...
@@ -300,14 +300,6 @@ int caosdb_transaction_transaction_get_count_result(
...
@@ -300,14 +300,6 @@ int caosdb_transaction_transaction_get_count_result(
typedef
struct
{
typedef
struct
{
void
*
wrapped_entity
;
void
*
wrapped_entity
;
char
**
id
;
char
**
role
;
char
**
name
;
char
**
description
;
char
**
datatype
;
char
**
unit
;
char
**
value
;
char
**
version_id
;
}
caosdb_entity_entity
;
}
caosdb_entity_entity
;
int
caosdb_transaction_result_set_at
(
caosdb_transaction_result_set
*
result_set
,
int
caosdb_transaction_result_set_at
(
caosdb_transaction_result_set
*
result_set
,
...
@@ -317,26 +309,25 @@ int caosdb_transaction_result_set_size(
...
@@ -317,26 +309,25 @@ int caosdb_transaction_result_set_size(
typedef
struct
{
typedef
struct
{
void
*
wrapped_property
;
void
*
wrapped_property
;
char
**
id
;
char
**
name
;
char
**
description
;
char
**
datatype
;
char
**
unit
;
char
**
value
;
}
caosdb_entity_property
;
}
caosdb_entity_property
;
typedef
struct
{
typedef
struct
{
void
*
wrapped_parent
;
void
*
wrapped_parent
;
char
**
id
;
char
**
name
;
char
**
description
;
}
caosdb_entity_parent
;
}
caosdb_entity_parent
;
typedef
struct
{
typedef
struct
{
void
*
wrapped_message
;
void
*
wrapped_message
;
int
*
code
;
char
**
description
;
}
caosdb_entity_message
;
}
caosdb_entity_message
;
// GETTERS FOR COMPLEX OBJECTS
// GETTERS FOR EVERYTHING
int
caosdb_entity_entity_get_id
(
caosdb_entity_entity
*
entity
,
char
*
out
);
int
caosdb_entity_entity_get_role
(
caosdb_entity_entity
*
entity
,
char
*
out
);
int
caosdb_entity_entity_get_name
(
caosdb_entity_entity
*
entity
,
char
*
out
);
int
caosdb_entity_entity_get_description
(
caosdb_entity_entity
*
entity
,
char
*
out
);
int
caosdb_entity_entity_get_datatype
(
caosdb_entity_entity
*
entity
,
char
*
out
);
int
caosdb_entity_entity_get_unit
(
caosdb_entity_entity
*
entity
,
char
*
out
);
int
caosdb_entity_entity_get_value
(
caosdb_entity_entity
*
entity
,
char
*
out
);
int
caosdb_entity_entity_get_version_id
(
caosdb_entity_entity
*
entity
,
char
*
out
);
int
caosdb_entity_entity_get_errors_size
(
caosdb_entity_entity
*
entity
,
int
caosdb_entity_entity_get_errors_size
(
caosdb_entity_entity
*
entity
,
int
*
out
);
int
*
out
);
int
caosdb_entity_entity_get_error
(
caosdb_entity_entity
*
entity
,
int
caosdb_entity_entity_get_error
(
caosdb_entity_entity
*
entity
,
...
@@ -357,6 +348,29 @@ int caosdb_entity_entity_get_parents_size(caosdb_entity_entity *entity,
...
@@ -357,6 +348,29 @@ int caosdb_entity_entity_get_parents_size(caosdb_entity_entity *entity,
int
caosdb_entity_entity_get_parent
(
caosdb_entity_entity
*
entity
,
int
caosdb_entity_entity_get_parent
(
caosdb_entity_entity
*
entity
,
caosdb_entity_parent
*
out
,
int
index
);
caosdb_entity_parent
*
out
,
int
index
);
int
caosdb_entity_property_get_id
(
caosdb_entity_property
*
property
,
char
*
out
);
int
caosdb_entity_property_get_name
(
caosdb_entity_property
*
property
,
char
*
out
);
int
caosdb_entity_property_get_description
(
caosdb_entity_property
*
property
,
char
*
out
);
int
caosdb_entity_property_get_importance
(
caosdb_entity_property
*
property
,
char
*
out
);
int
caosdb_entity_property_get_datatype
(
caosdb_entity_property
*
property
,
char
*
out
);
int
caosdb_entity_property_get_unit
(
caosdb_entity_property
*
property
,
char
*
out
);
int
caosdb_entity_property_get_value
(
caosdb_entity_property
*
property
,
char
*
out
);
int
caosdb_entity_parent_get_id
(
caosdb_entity_parent
*
parent
,
char
*
out
);
int
caosdb_entity_parent_get_name
(
caosdb_entity_parent
*
parent
,
char
*
out
);
int
caosdb_entity_parent_get_description
(
caosdb_entity_parent
*
parent
,
char
*
out
);
int
caosdb_entity_message_get_code
(
caosdb_entity_message
*
message
,
int
*
out
);
int
caosdb_entity_message_get_description
(
caosdb_entity_message
*
message
,
char
*
out
);
// CONSTRUCTORS AND DESTRUCTORS
// CONSTRUCTORS AND DESTRUCTORS
int
caosdb_entity_create_entity
(
caosdb_entity_entity
*
out
);
int
caosdb_entity_create_entity
(
caosdb_entity_entity
*
out
);
int
caosdb_entity_delete_entity
(
caosdb_entity_entity
*
out
);
int
caosdb_entity_delete_entity
(
caosdb_entity_entity
*
out
);
...
@@ -365,12 +379,37 @@ int caosdb_entity_delete_property(caosdb_entity_property *out);
...
@@ -365,12 +379,37 @@ int caosdb_entity_delete_property(caosdb_entity_property *out);
int
caosdb_entity_create_parent
(
caosdb_entity_parent
*
out
);
int
caosdb_entity_create_parent
(
caosdb_entity_parent
*
out
);
int
caosdb_entity_delete_parent
(
caosdb_entity_parent
*
out
);
int
caosdb_entity_delete_parent
(
caosdb_entity_parent
*
out
);
// SETTERS FOR COMPLEX OBJECTS
// SETTERS FOR EVERYTHING THAT MAY BE SET
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_datatype
(
caosdb_entity_entity
*
entity
,
const
char
*
datatype
);
int
caosdb_entity_entity_set_unit
(
caosdb_entity_entity
*
entity
,
const
char
*
unit
);
int
caosdb_entity_entity_set_value
(
caosdb_entity_entity
*
entity
,
const
char
*
value
);
int
caosdb_entity_entity_append_parent
(
caosdb_entity_entity
*
entity
,
int
caosdb_entity_entity_append_parent
(
caosdb_entity_entity
*
entity
,
caosdb_entity_parent
*
parent
);
caosdb_entity_parent
*
parent
);
int
caosdb_entity_entity_append_property
(
caosdb_entity_entity
*
entity
,
int
caosdb_entity_entity_append_property
(
caosdb_entity_entity
*
entity
,
caosdb_entity_property
*
property
);
caosdb_entity_property
*
property
);
int
caosdb_entity_property_set_id
(
caosdb_entity_property
*
property
,
const
char
*
id
);
int
caosdb_entity_property_set_name
(
caosdb_entity_property
*
property
,
const
char
*
name
);
int
caosdb_entity_property_set_datatype
(
caosdb_entity_property
*
property
,
const
char
*
datatype
);
int
caosdb_entity_property_set_importance
(
caosdb_entity_property
*
property
,
const
char
*
importance
);
int
caosdb_entity_property_set_unit
(
caosdb_entity_property
*
property
,
const
char
*
unit
);
int
caosdb_entity_property_set_value
(
caosdb_entity_property
*
property
,
const
char
*
value
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
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