00001 /* 00002 * ss_classes.h - describe functions for work with classes throw SS. 00003 * This file is part of PetrSU KP library. 00004 * 00005 * Copyright (C) 2009 - Pavel Vanag. All rights reserved. 00006 * 00007 * PetrSU KP library is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * PetrSU KP library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with <program name>; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, 00020 * Boston, MA 02110-1301 USA 00021 */ 00022 00023 #ifndef _SS_CLASSES_H 00024 #define _SS_CLASSES_H 00025 00026 #include "kpi_interface.h" 00027 #include "ss_properties.h" 00028 #include "ss_func.h" 00029 #include "utils/list.h" 00030 #include "kpi_low.h" 00031 00032 00042 int init_individual(individual_t *ind); 00043 00054 int init_individual_with_uuid(individual_t *ind, const char *uuid); 00055 00068 int ss_insert_individual(individual_t *individual); 00069 00083 int ss_insert_by_pattern(individual_t *individual, void *pattern); 00084 00099 int ss_update_individual(individual_t *individual); 00100 00116 int ss_update_by_pattern(individual_t *individual, void *pattern); 00117 00118 00132 int ss_remove_individual(individual_t *individual); 00133 00145 int ss_exists(individual_t *individual); 00146 00158 int ss_exists_class(class_t *class); 00159 00171 int ss_exists_by_individual_uuid(individual_t *individual); 00172 00184 int ss_exists_by_uuid(char *uuid); 00185 00197 int ss_exists_by_pattern(void *pattern); 00198 00211 list_t* ss_get_uuids_by_class(class_t *class); 00212 00225 list_t* ss_get_individuals_by_pattern(individual_t *individual_pattern); 00226 00227 #endif /* _SS_CLASSES_H */