Skip to content
Snippets Groups Projects

F get value

Merged Alexander Kreft requested to merge f-get-value into dev
All threads resolved!
1 file
+ 8
8
Compare changes
  • Side-by-side
  • Inline
+ 8
8
@@ -1655,7+1655,7 @@
@@ -1655,7+1655,7 @@
"""
"""
function set_id(entity::Ref{_Entity}, id::AbstractString)
function set_id(entity::Ref{_Entity}, id::AbstractString)
Throws a `CaosDB.Exceptions.ClientException` since you are not allowed
Throws a `CaosDB.Exceptions.ClientException` since you are not allowed
to set the id of entities.
to set the id of entities.
"""
"""
function set_id(entity::Ref{_Entity}, id::AbstractString)
function set_id(entity::Ref{_Entity}, id::AbstractString)
@@ -1951,7+1951,7 @@
@@ -1951,7+1951,7 @@
err_code = ccall(
err_code = ccall(
(:caosdb_entity_entity_set_int_value, CaosDB.library_name),
(:caosdb_entity_entity_set_int_value, CaosDB.library_name),
Cint,
Cint,
(Ref{_Entity}, Clong),
(Ref{_Entity}, Cint),
entity,
entity,
Clong(value),
Cint(value),
)
)
elseif in_type <: Number
elseif in_type <: Number
err_code = ccall(
err_code = ccall(
@@ -1988,9 +1988,9 @@ function set_value(
@@ -1988,9 +1988,9 @@ function set_value(
err_code = ccall(
err_code = ccall(
(:caosdb_entity_entity_set_int_list_value, CaosDB.library_name),
(:caosdb_entity_entity_set_int_list_value, CaosDB.library_name),
Cint,
Cint,
(Ref{_Entity}, Ptr{Clong}, Cint),
(Ref{_Entity}, Ptr{Cint}, Cint),
entity,
entity,
Vector{Clong}(value),
Vector{Cint}(value),
vec_length,
vec_length,
)
)
elseif in_type <: Vector{T} where {T<:Number}
elseif in_type <: Vector{T} where {T<:Number}
@@ -2040,9 +2040,9 @@ function set_value(
@@ -2040,9 +2040,9 @@ function set_value(
err_code = ccall(
err_code = ccall(
(:caosdb_entity_property_set_int_value, CaosDB.library_name),
(:caosdb_entity_property_set_int_value, CaosDB.library_name),
Cint,
Cint,
(Ref{_Property}, Clong),
(Ref{_Property}, Cint),
property,
property,
Clong(value),
Cint(value),
)
)
elseif in_type <: Number
elseif in_type <: Number
err_code = ccall(
err_code = ccall(
@@ -2077,9 +2077,9 @@ function set_value(
@@ -2077,9 +2077,9 @@ function set_value(
err_code = ccall(
err_code = ccall(
(:caosdb_entity_property_set_int_list_value, CaosDB.library_name),
(:caosdb_entity_property_set_int_list_value, CaosDB.library_name),
Cint,
Cint,
(Ref{_Property}, Ptr{Clong}, Cint),
(Ref{_Property}, Ptr{Cint}, Cint),
property,
property,
Vector{Clong}(value),
Vector{Cint}(value),
vec_length,
vec_length,
)
)
elseif in_type <: Vector{T} where {T<:Number}
elseif in_type <: Vector{T} where {T<:Number}
Loading