Internalfunctions - SmartSlog KP Library
Main Page
Modules
Data Structures
Files
File List
Globals
classes.h
Go to the documentation of this file.
1
35
#include "
structures.h
"
36
#include "utils/kp_debug.h"
37
38
#ifndef _CLASSES_H
39
#define _CLASSES_H
40
41
#if defined(WIN32) || defined(WINCE) || defined(SMARTSLOG_WIN_EXPORTS)
42
#define SSLOG_EXTERN __declspec(dllexport)
43
#else
44
#define SSLOG_EXTERN
45
#endif
46
47
#ifdef __cplusplus
48
extern
"C"
{
49
#endif
50
51
52
/* Functions for work with classes and properties */
54
SSLOG_EXTERN
individual_t
*
sslog_new_individual
(
const
class_t
*classtype);
55
SSLOG_EXTERN
list_t*
sslog_get_superclass_all
(
const
class_t
*ont_class);
56
SSLOG_EXTERN
int
sslog_is_subclass_of
(
const
class_t
*ont_class,
const
class_t
*super_class);
57
SSLOG_EXTERN
int
sslog_is_classtype_of
(
const
individual_t
*individual,
const
class_t
*prent_class);
58
SSLOG_EXTERN
int
sslog_rep_count_individual_references
(
individual_t
*individual);
59
SSLOG_EXTERN
int
sslog_set_individual_uuid
(
individual_t
*ind,
const
char
*uuid);
61
62
63
/* Functions for add/remove entities to repositories */
65
SSLOG_EXTERN
int
sslog_repo_add_entity
(
void
*entity);
66
SSLOG_EXTERN
int
sslog_repo_add_class
(
class_t
*ont_class);
67
SSLOG_EXTERN
int
sslog_repo_add_property
(
property_t
*property);
68
SSLOG_EXTERN
void
sslog_repo_remove_entity
(
void
*entity);
69
SSLOG_EXTERN
void
sslog_repo_clean_all
();
71
72
73
/* Functions for get data from repositories */
75
SSLOG_EXTERN
const
property_t
*
sslog_repo_get_property_by_name
(
const
char
*name);
76
SSLOG_EXTERN
const
class_t
*
sslog_repo_get_class_by_classtype
(
const
char
*classtype);
77
SSLOG_EXTERN
const
individual_t
*
sslog_repo_get_individual_by_uuid
(
const
char
*uuid);
78
SSLOG_EXTERN
const
list_t*
sslog_repo_get_individual_by_classtype_all
(
const
char
*classtype);
80
81
#ifdef __cplusplus
82
}
83
#endif
84
85
#endif
/* _CLASSES_H */
Generated on Mon Dec 17 2012 16:22:49 for Internalfunctions - SmartSlog KP Library by
1.8.1.1