API -&nbspSmartSlog KP Library
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 */
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);
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);
68 SSLOG_EXTERN void sslog_repo_remove_entity(void *entity);
71 
72 
73 /* Functions for get data from repositories */
76 SSLOG_EXTERN const class_t* sslog_repo_get_class_by_classtype(const char *classtype);
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 */