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
4336c440
Commit
4336c440
authored
3 years ago
by
florian
Browse files
Options
Downloads
Patches
Plain Diff
STY: autoformatted
parent
ca32b1ec
No related branches found
No related tags found
1 merge request
!13
ENH: Add datatypes and value classes to Extern C interface
Pipeline
#12274
passed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#12278
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/ccaosdb.h
+104
-173
104 additions, 173 deletions
include/ccaosdb.h
src/ccaosdb.cpp
+583
-705
583 additions, 705 deletions
src/ccaosdb.cpp
test/test_ccaosdb.cpp
+1
-2
1 addition, 2 deletions
test/test_ccaosdb.cpp
with
688 additions
and
880 deletions
include/ccaosdb.h
+
104
−
173
View file @
4336c440
...
...
@@ -137,8 +137,7 @@ int caosdb_connection_create_pem_file_certificate_provider(
*
* EXPERT USE ONLY. Only use it when you know what you are doing.
*/
int
caosdb_connection_delete_certificate_provider
(
caosdb_connection_certificate_provider
*
provider
);
int
caosdb_connection_delete_certificate_provider
(
caosdb_connection_certificate_provider
*
provider
);
/**
* Create a tls-secured connection configuration.
...
...
@@ -153,8 +152,8 @@ int caosdb_connection_delete_certificate_provider(
* Only use it when you know what you are doing.
*/
int
caosdb_connection_create_tls_connection_configuration
(
caosdb_connection_connection_configuration
*
out
,
const
char
*
host
,
const
int
port
,
caosdb_authentication_authenticator
*
authenticator
,
caosdb_connection_connection_configuration
*
out
,
const
char
*
host
,
const
int
port
,
caosdb_authentication_authenticator
*
authenticator
,
caosdb_connection_certificate_provider
*
provider
);
/**
...
...
@@ -173,8 +172,7 @@ int caosdb_connection_create_tls_connection_configuration(
* Only use it when you know what you are doing.
*/
int
caosdb_connection_create_insecure_connection_configuration
(
caosdb_connection_connection_configuration
*
out
,
const
char
*
host
,
const
int
port
);
caosdb_connection_connection_configuration
*
out
,
const
char
*
host
,
const
int
port
);
/**
* Destructor function for the caosdb_connection_connection_configuration
...
...
@@ -192,8 +190,7 @@ int caosdb_connection_delete_connection_configuration(
* @param cacert path to a pem-file.
*/
int
caosdb_connection_configuration_add_cacert
(
caosdb_connection_connection_configuration
*
configuration
,
const
char
*
cacert
);
caosdb_connection_connection_configuration
*
configuration
,
const
char
*
cacert
);
/**
* Create a plain password authenticator.
...
...
@@ -206,16 +203,14 @@ int caosdb_connection_configuration_add_cacert(
* Only use it when you know what you are doing.
*/
int
caosdb_authentication_create_plain_password_authenticator
(
caosdb_authentication_authenticator
*
out
,
const
char
*
username
,
const
char
*
password
);
caosdb_authentication_authenticator
*
out
,
const
char
*
username
,
const
char
*
password
);
/**
* Destructor function for the caosdb_authentication_authenticator struct.
*
* EXPERT USE ONLY. Only use it when you know what you are doing.
*/
int
caosdb_authentication_delete_authenticator
(
caosdb_authentication_authenticator
*
authenticator
);
int
caosdb_authentication_delete_authenticator
(
caosdb_authentication_authenticator
*
authenticator
);
/**
* Create a connection instance.
...
...
@@ -239,31 +234,28 @@ int caosdb_connection_create_connection(
*
* EXPERT USE ONLY. Only use it when you know what you are doing.
*/
int
caosdb_connection_delete_connection
(
caosdb_connection_connection
*
connection
);
int
caosdb_connection_delete_connection
(
caosdb_connection_connection
*
connection
);
/**
* Request the version of the server.
*/
int
caosdb_connection_get_version_info
(
caosdb_info_version_info
*
out
,
const
caosdb_connection_connection
*
connection
);
int
caosdb_connection_get_version_info
(
caosdb_info_version_info
*
out
,
const
caosdb_connection_connection
*
connection
);
/**
* Get the default connection from the ConnectionManager.
*
* The default connection is to be specified in a configuration file.
*/
int
caosdb_connection_connection_manager_get_default_connection
(
caosdb_connection_connection
*
out
);
int
caosdb_connection_connection_manager_get_default_connection
(
caosdb_connection_connection
*
out
);
/**
* Get a named connection from the ConnectionManager.
*
* The named connection is to be specified in a configuration file.
*/
int
caosdb_connection_connection_manager_get_connection
(
caosdb_connection_connection
*
out
,
const
char
*
name
);
int
caosdb_connection_connection_manager_get_connection
(
caosdb_connection_connection
*
out
,
const
char
*
name
);
/****************************************************************************
* ENTITY STUFF AND TRANSACTIONS
...
...
@@ -282,19 +274,16 @@ typedef struct {
* This transaction has to be deleted manually by
* caosdb_transaction_delete_transaction() later on.
*/
int
caosdb_connection_connection_create_transaction
(
caosdb_connection_connection
*
connection
,
caosdb_transaction_transaction
*
out
);
int
caosdb_transaction_delete_transaction
(
caosdb_transaction_transaction
*
transaction
);
int
caosdb_transaction_transaction_retrieve_by_id
(
caosdb_transaction_transaction
*
transaction
,
const
char
*
id
);
int
caosdb_transaction_transaction_retrieve_by_ids
(
caosdb_transaction_transaction
*
transaction
,
const
char
*
ids
[],
int
length
);
int
caosdb_transaction_transaction_query
(
caosdb_transaction_transaction
*
transaction
,
const
char
*
query
);
int
caosdb_transaction_transaction_execute
(
caosdb_transaction_transaction
*
transaction
);
int
caosdb_connection_connection_create_transaction
(
caosdb_connection_connection
*
connection
,
caosdb_transaction_transaction
*
out
);
int
caosdb_transaction_delete_transaction
(
caosdb_transaction_transaction
*
transaction
);
int
caosdb_transaction_transaction_retrieve_by_id
(
caosdb_transaction_transaction
*
transaction
,
const
char
*
id
);
int
caosdb_transaction_transaction_retrieve_by_ids
(
caosdb_transaction_transaction
*
transaction
,
const
char
*
ids
[],
int
length
);
int
caosdb_transaction_transaction_query
(
caosdb_transaction_transaction
*
transaction
,
const
char
*
query
);
int
caosdb_transaction_transaction_execute
(
caosdb_transaction_transaction
*
transaction
);
// TODO(fspreck) execute_asynchronously may be added as a separate
// function once we actually support asynchronous execution.
...
...
@@ -303,12 +292,11 @@ typedef struct {
bool
_deletable
=
false
;
}
caosdb_transaction_result_set
;
int
caosdb_transaction_transaction_get_result_set
(
caosdb_transaction_transaction
*
transaction
,
caosdb_transaction_result_set
*
out
);
int
caosdb_transaction_transaction_get_result_set
(
caosdb_transaction_transaction
*
transaction
,
caosdb_transaction_result_set
*
out
);
int
caosdb_transaction_transaction_get_count_result
(
caosdb_transaction_transaction
*
transaction
,
long
*
out
);
int
caosdb_transaction_transaction_get_count_result
(
caosdb_transaction_transaction
*
transaction
,
long
*
out
);
typedef
struct
{
void
*
wrapped_entity
;
...
...
@@ -317,8 +305,7 @@ typedef struct {
int
caosdb_transaction_result_set_at
(
caosdb_transaction_result_set
*
result_set
,
caosdb_entity_entity
*
entity
,
int
index
);
int
caosdb_transaction_result_set_size
(
caosdb_transaction_result_set
*
result_set
,
int
*
out
);
int
caosdb_transaction_result_set_size
(
caosdb_transaction_result_set
*
result_set
,
int
*
out
);
typedef
struct
{
void
*
wrapped_property
;
...
...
@@ -337,90 +324,60 @@ typedef struct {
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_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_int_value
(
caosdb_entity_entity
*
entity
,
long
*
out
);
int
caosdb_entity_entity_get_double_value
(
caosdb_entity_entity
*
entity
,
double
*
out
);
int
caosdb_entity_entity_get_boolean_value
(
caosdb_entity_entity
*
entity
,
bool
*
out
);
int
caosdb_entity_entity_get_string_value
(
caosdb_entity_entity
*
entity
,
char
**
out
);
int
caosdb_entity_entity_get_int_list_value
(
caosdb_entity_entity
*
entity
,
long
*
out
);
int
caosdb_entity_entity_get_double_list_value
(
caosdb_entity_entity
*
entity
,
double
*
out
);
int
caosdb_entity_entity_get_boolean_list_value
(
caosdb_entity_entity
*
entity
,
bool
*
out
);
int
caosdb_entity_entity_get_string_list_value
(
caosdb_entity_entity
*
entity
,
char
**
out
);
int
caosdb_entity_entity_get_value_list_length
(
caosdb_entity_entity
*
entity
,
int
*
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
*
out
);
int
caosdb_entity_entity_get_error
(
caosdb_entity_entity
*
entity
,
caosdb_entity_message
*
out
,
int
index
);
int
caosdb_entity_entity_get_warnings_size
(
caosdb_entity_entity
*
entity
,
int
*
out
);
int
caosdb_entity_entity_get_warning
(
caosdb_entity_entity
*
entity
,
caosdb_entity_message
*
out
,
int
index
);
int
caosdb_entity_entity_get_double_value
(
caosdb_entity_entity
*
entity
,
double
*
out
);
int
caosdb_entity_entity_get_boolean_value
(
caosdb_entity_entity
*
entity
,
bool
*
out
);
int
caosdb_entity_entity_get_string_value
(
caosdb_entity_entity
*
entity
,
char
**
out
);
int
caosdb_entity_entity_get_int_list_value
(
caosdb_entity_entity
*
entity
,
long
*
out
);
int
caosdb_entity_entity_get_double_list_value
(
caosdb_entity_entity
*
entity
,
double
*
out
);
int
caosdb_entity_entity_get_boolean_list_value
(
caosdb_entity_entity
*
entity
,
bool
*
out
);
int
caosdb_entity_entity_get_string_list_value
(
caosdb_entity_entity
*
entity
,
char
**
out
);
int
caosdb_entity_entity_get_value_list_length
(
caosdb_entity_entity
*
entity
,
int
*
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
*
out
);
int
caosdb_entity_entity_get_error
(
caosdb_entity_entity
*
entity
,
caosdb_entity_message
*
out
,
int
index
);
int
caosdb_entity_entity_get_warnings_size
(
caosdb_entity_entity
*
entity
,
int
*
out
);
int
caosdb_entity_entity_get_warning
(
caosdb_entity_entity
*
entity
,
caosdb_entity_message
*
out
,
int
index
);
int
caosdb_entity_entity_get_infos_size
(
caosdb_entity_entity
*
entity
,
int
*
out
);
int
caosdb_entity_entity_get_info
(
caosdb_entity_entity
*
entity
,
caosdb_entity_message
*
out
,
int
index
);
int
caosdb_entity_entity_get_properties_size
(
caosdb_entity_entity
*
entity
,
int
*
out
);
int
caosdb_entity_entity_get_property
(
caosdb_entity_entity
*
entity
,
caosdb_entity_property
*
out
,
int
index
);
int
caosdb_entity_entity_get_parents_size
(
caosdb_entity_entity
*
entity
,
int
*
out
);
int
caosdb_entity_entity_get_parent
(
caosdb_entity_entity
*
entity
,
caosdb_entity_parent
*
out
,
int
index
);
int
caosdb_entity_entity_get_info
(
caosdb_entity_entity
*
entity
,
caosdb_entity_message
*
out
,
int
index
);
int
caosdb_entity_entity_get_properties_size
(
caosdb_entity_entity
*
entity
,
int
*
out
);
int
caosdb_entity_entity_get_property
(
caosdb_entity_entity
*
entity
,
caosdb_entity_property
*
out
,
int
index
);
int
caosdb_entity_entity_get_parents_size
(
caosdb_entity_entity
*
entity
,
int
*
out
);
int
caosdb_entity_entity_get_parent
(
caosdb_entity_entity
*
entity
,
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_int_value
(
caosdb_entity_property
*
property
,
long
*
out
);
int
caosdb_entity_property_get_double_value
(
caosdb_entity_property
*
property
,
double
*
out
);
int
caosdb_entity_property_get_boolean_value
(
caosdb_entity_property
*
property
,
bool
*
out
);
int
caosdb_entity_property_get_string_value
(
caosdb_entity_property
*
property
,
char
**
out
);
int
caosdb_entity_property_get_int_list_value
(
caosdb_entity_property
*
property
,
long
**
out
);
int
caosdb_entity_property_get_double_list_value
(
caosdb_entity_property
*
property
,
double
*
out
);
int
caosdb_entity_property_get_boolean_list_value
(
caosdb_entity_property
*
property
,
bool
*
out
);
int
caosdb_entity_property_get_string_list_value
(
caosdb_entity_property
*
property
,
char
***
out
);
int
caosdb_entity_property_get_value_list_length
(
caosdb_entity_property
*
property
,
int
*
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_int_value
(
caosdb_entity_property
*
property
,
long
*
out
);
int
caosdb_entity_property_get_double_value
(
caosdb_entity_property
*
property
,
double
*
out
);
int
caosdb_entity_property_get_boolean_value
(
caosdb_entity_property
*
property
,
bool
*
out
);
int
caosdb_entity_property_get_string_value
(
caosdb_entity_property
*
property
,
char
**
out
);
int
caosdb_entity_property_get_int_list_value
(
caosdb_entity_property
*
property
,
long
**
out
);
int
caosdb_entity_property_get_double_list_value
(
caosdb_entity_property
*
property
,
double
*
out
);
int
caosdb_entity_property_get_boolean_list_value
(
caosdb_entity_property
*
property
,
bool
*
out
);
int
caosdb_entity_property_get_string_list_value
(
caosdb_entity_property
*
property
,
char
***
out
);
int
caosdb_entity_property_get_value_list_length
(
caosdb_entity_property
*
property
,
int
*
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_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
);
int
caosdb_entity_message_get_description
(
caosdb_entity_message
*
message
,
char
**
out
);
// CONSTRUCTORS AND DESTRUCTORS
int
caosdb_entity_create_entity
(
caosdb_entity_entity
*
out
);
...
...
@@ -431,78 +388,52 @@ int caosdb_entity_create_parent(caosdb_entity_parent *out);
int
caosdb_entity_delete_parent
(
caosdb_entity_parent
*
out
);
// 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_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
);
// TODO(fspreck) replace by more specific setters
int
caosdb_entity_entity_set_int_value
(
caosdb_entity_entity
*
entity
,
const
long
value
);
int
caosdb_entity_entity_set_double_value
(
caosdb_entity_entity
*
entity
,
const
double
value
);
int
caosdb_entity_entity_set_boolean_value
(
caosdb_entity_entity
*
entity
,
const
bool
value
);
int
caosdb_entity_entity_set_string_value
(
caosdb_entity_entity
*
entity
,
const
char
*
value
);
int
caosdb_entity_entity_set_int_list_value
(
caosdb_entity_entity
*
entity
,
const
long
*
value
,
int
caosdb_entity_entity_set_int_value
(
caosdb_entity_entity
*
entity
,
const
long
value
);
int
caosdb_entity_entity_set_double_value
(
caosdb_entity_entity
*
entity
,
const
double
value
);
int
caosdb_entity_entity_set_boolean_value
(
caosdb_entity_entity
*
entity
,
const
bool
value
);
int
caosdb_entity_entity_set_string_value
(
caosdb_entity_entity
*
entity
,
const
char
*
value
);
int
caosdb_entity_entity_set_int_list_value
(
caosdb_entity_entity
*
entity
,
const
long
*
value
,
const
int
length
);
int
caosdb_entity_entity_set_double_list_value
(
caosdb_entity_entity
*
entity
,
const
double
*
value
,
int
caosdb_entity_entity_set_double_list_value
(
caosdb_entity_entity
*
entity
,
const
double
*
value
,
const
int
length
);
int
caosdb_entity_entity_set_boolean_list_value
(
caosdb_entity_entity
*
entity
,
const
bool
*
value
,
int
caosdb_entity_entity_set_boolean_list_value
(
caosdb_entity_entity
*
entity
,
const
bool
*
value
,
const
int
length
);
int
caosdb_entity_entity_set_string_list_value
(
caosdb_entity_entity
*
entity
,
const
char
**
value
,
int
caosdb_entity_entity_set_string_list_value
(
caosdb_entity_entity
*
entity
,
const
char
**
value
,
const
int
length
);
int
caosdb_entity_entity_append_parent
(
caosdb_entity_entity
*
entity
,
caosdb_entity_parent
*
parent
);
int
caosdb_entity_entity_append_parent
(
caosdb_entity_entity
*
entity
,
caosdb_entity_parent
*
parent
);
int
caosdb_entity_entity_remove_parent
(
caosdb_entity_entity
*
entity
,
int
index
);
int
caosdb_entity_entity_append_property
(
caosdb_entity_entity
*
entity
,
caosdb_entity_property
*
property
);
int
caosdb_entity_entity_remove_property
(
caosdb_entity_entity
*
entity
,
int
index
);
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_int_value
(
caosdb_entity_property
*
property
,
const
long
value
);
int
caosdb_entity_property_set_double_value
(
caosdb_entity_property
*
property
,
const
double
value
);
int
caosdb_entity_property_set_boolean_value
(
caosdb_entity_property
*
property
,
const
bool
value
);
int
caosdb_entity_property_set_string_value
(
caosdb_entity_property
*
property
,
const
char
*
value
);
int
caosdb_entity_property_set_int_list_value
(
caosdb_entity_property
*
property
,
const
long
*
value
,
int
caosdb_entity_entity_remove_property
(
caosdb_entity_entity
*
entity
,
int
index
);
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_int_value
(
caosdb_entity_property
*
property
,
const
long
value
);
int
caosdb_entity_property_set_double_value
(
caosdb_entity_property
*
property
,
const
double
value
);
int
caosdb_entity_property_set_boolean_value
(
caosdb_entity_property
*
property
,
const
bool
value
);
int
caosdb_entity_property_set_string_value
(
caosdb_entity_property
*
property
,
const
char
*
value
);
int
caosdb_entity_property_set_int_list_value
(
caosdb_entity_property
*
property
,
const
long
*
value
,
const
int
length
);
int
caosdb_entity_property_set_double_list_value
(
caosdb_entity_property
*
property
,
const
double
*
value
,
const
int
length
);
int
caosdb_entity_property_set_boolean_list_value
(
caosdb_entity_property
*
property
,
const
bool
*
value
,
const
int
length
);
int
caosdb_entity_property_set_string_list_value
(
caosdb_entity_property
*
property
,
const
char
**
value
,
const
int
length
);
int
caosdb_entity_property_set_double_list_value
(
caosdb_entity_property
*
property
,
const
double
*
value
,
const
int
length
);
int
caosdb_entity_property_set_boolean_list_value
(
caosdb_entity_property
*
property
,
const
bool
*
value
,
const
int
length
);
int
caosdb_entity_property_set_string_list_value
(
caosdb_entity_property
*
property
,
const
char
**
value
,
const
int
length
);
int
caosdb_entity_parent_set_id
(
caosdb_entity_parent
*
parent
,
const
char
*
id
);
int
caosdb_entity_parent_set_name
(
caosdb_entity_parent
*
parent
,
const
char
*
name
);
int
caosdb_entity_parent_set_name
(
caosdb_entity_parent
*
parent
,
const
char
*
name
);
#ifdef __cplusplus
}
...
...
This diff is collapsed.
Click to expand it.
src/ccaosdb.cpp
+
583
−
705
View file @
4336c440
This diff is collapsed.
Click to expand it.
test/test_ccaosdb.cpp
+
1
−
2
View file @
4336c440
...
...
@@ -262,8 +262,7 @@ TEST_F(test_ccaosdb, test_list_property) {
// EXPECT_EQ(return_code, 0);
const
char
*
value_list
[]
=
{
"val0"
,
"val1"
,
"val2"
};
// NOLINT
return_code
=
caosdb_entity_property_set_string_list_value
(
&
property
,
value_list
,
3
);
return_code
=
caosdb_entity_property_set_string_list_value
(
&
property
,
value_list
,
3
);
EXPECT_EQ
(
return_code
,
0
);
// TODO(fspreck)
...
...
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