API - SmartSlog KP Library
Main Page
Data Structures
Files
File List
Globals
patterns.h
Go to the documentation of this file.
1
35
#ifdef KPI_LOW
36
#include <kpilow/kpi_low.h>
37
#else
38
#include <ckpi/ckpi.h>
39
#endif
40
41
#include <stdio.h>
42
#include <string.h>
43
#include "utils/list.h"
44
45
#include "
structures.h
"
46
#include "
utils/kp_error.h
"
47
#include "utils/kp_bool.h"
48
49
#ifndef _PATTERNS_H
50
#define _PATTERNS_H
51
52
#if defined(WIN32) || defined(WINCE) || defined(SMARTSLOG_WIN_EXPORTS)
53
#define SSLOG_EXTERN __declspec(dllexport)
54
#else
55
#define SSLOG_EXTERN
56
#endif
57
58
62
#ifndef RDF_TYPE
63
#define RDF_TYPE "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
64
#endif
65
66
67
#ifdef __cplusplus
68
extern
"C"
{
69
#endif
70
71
72
/******************************************************************************/
73
/****************************** Structures list *******************************/
75
81
typedef
struct
pattern_condition_s
{
82
int
rtti
;
84
property_t
*
prop
;
85
void
*
value
;
87
int
condition
;
88
}
pattern_condition_t
;
89
90
91
95
typedef
struct
pattern_s
{
96
int
rtti
;
98
class_t
*
ont_class
;
99
char
*
uuid
;
101
list_t *
check_prop_list
;
102
list_t *
uncheck_prop_list
;
103
}
pattern_t
;
104
105
107
/******************************************************************************/
108
109
110
111
/******************************************************************************/
112
/****************************** Functions list ********************************/
114
115
SSLOG_EXTERN
pattern_t
*
sslog_new_pattern
(
class_t
*ont_class,
const
char
*uuid);
116
SSLOG_EXTERN
void
sslog_free_pattern
(
pattern_t
*pattern);
117
SSLOG_EXTERN
void
sslog_clean_pattern
(
pattern_t
*pattern);
118
SSLOG_EXTERN
int
sslog_set_pattern_class
(
pattern_t
*pattern,
class_t
*ont_class);
119
SSLOG_EXTERN
int
sslog_set_pattern_uuid
(
pattern_t
*pattern,
const
char
*uuid);
120
133
SSLOG_EXTERN
list_t*
sslog_ss_get_individual_by_pattern_all
(
pattern_t
*individual_pattern);
134
135
SSLOG_EXTERN
int
sslog_add_unproperty_to_pattern
(
pattern_t
*pattern,
property_t
*prop,
void
*value,
int
condition);
136
137
SSLOG_EXTERN
int
sslog_add_property_to_pattern
(
pattern_t
*pattern,
property_t
*prop,
void
*value,
int
condition);
138
139
141
/******************************************************************************/
142
143
#ifdef __cplusplus
144
}
145
#endif
146
147
#endif
/* _PATTERNS_H */
Generated on Mon Dec 17 2012 16:22:27 for API - SmartSlog KP Library by
1.8.1.1