Guardtime Parameter and Task Handling SDK libparamset
task_def.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013-2017 Guardtime, Inc.
3  *
4  * This file is part of the Guardtime client SDK.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License").
7  * You may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  * http://www.apache.org/licenses/LICENSE-2.0
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES, CONDITIONS, OR OTHER LICENSES OF ANY KIND, either
13  * express or implied. See the License for the specific language governing
14  * permissions and limitations under the License.
15  * "Guardtime" and "KSI" are trademarks or registered trademarks of
16  * Guardtime, Inc., and no license to trademarks is granted; Guardtime
17  * reserves and retains all trademark rights.
18  */
19 
20 #ifndef TASK_DEF_H
21 #define TASK_DEF_H
22 
23 #include <stddef.h>
24 #include "param_set.h"
25 
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 typedef struct TASK_SET_st TASK_SET;
36 
40 typedef struct TASK_st TASK;
41 
47 int TASK_SET_new(TASK_SET **newObj);
48 
53 void TASK_SET_free(TASK_SET *obj);
54 
79 int TASK_SET_add(TASK_SET *task_set, int id, const char *name, const char *man, const char *atleastone, const char *forb, const char *ignore);
80 
134 int TASK_SET_analyzeConsistency(TASK_SET *task_set, PARAM_SET *set, double sensitivity);
135 
145 int TASK_SET_getConsistentTask(TASK_SET *task_set, TASK **task);
146 
159 int TASK_SET_isOneFromSetTheTarget(TASK_SET *task_set, double diff, int *ID);
160 
170 int TASK_SET_cleanIgnored(TASK_SET *task_set, TASK *task, int *removed);
171 
183 char* TASK_SET_suggestions_toString(TASK_SET *task_set, int depth, char *buf, size_t buf_len);
184 
198 char* TASK_SET_howToRepair_toString(TASK_SET *task_set, PARAM_SET *set, int ID, const char *prefix, char *buf, size_t buf_len);
199 
205 int TASK_getID(TASK *task);
206 
212 const char* TASK_getName(TASK *task);
213 
220 PARAM_SET *TASK_getSet(TASK *task);
221 
222 
223 #ifdef __cplusplus
224 }
225 #endif
226 
227 #endif
struct TASK_SET_st TASK_SET
Definition: task_def.h:35
int TASK_SET_cleanIgnored(TASK_SET *task_set, TASK *task, int *removed)
struct TASK_st TASK
Definition: task_def.h:40
int TASK_SET_isOneFromSetTheTarget(TASK_SET *task_set, double diff, int *ID)
int TASK_SET_add(TASK_SET *task_set, int id, const char *name, const char *man, const char *atleastone, const char *forb, const char *ignore)
int TASK_SET_new(TASK_SET **newObj)
char * TASK_SET_suggestions_toString(TASK_SET *task_set, int depth, char *buf, size_t buf_len)
int TASK_getID(TASK *task)
int TASK_SET_analyzeConsistency(TASK_SET *task_set, PARAM_SET *set, double sensitivity)
int TASK_SET_getConsistentTask(TASK_SET *task_set, TASK **task)
struct PARAM_SET_st PARAM_SET
Definition: param_set.h:125
const char * TASK_getName(TASK *task)
char * TASK_SET_howToRepair_toString(TASK_SET *task_set, PARAM_SET *set, int ID, const char *prefix, char *buf, size_t buf_len)
PARAM_SET * TASK_getSet(TASK *task)
void TASK_SET_free(TASK_SET *obj)