00001 /* 00002 * check_func.h - describe functions for different checks. 00003 * This file is part of PetrSU KP Library. 00004 * 00005 * Copyright (C) 2009 - Alexander A. Lomov. 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 PetrSU KP Library; 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 _CHECK_FUNC_H 00024 #define _CHECK_FUNC_H 00025 00026 #include <stdio.h> 00027 #include <string.h> 00028 00029 #include "kp_error.h" 00030 #include "kp_bool.h" 00031 #include "../structures.h" 00032 #include "../ss_subscribe.h" 00033 00034 00035 bool is_str_null_or_empty(const char* string); 00036 00037 int verify_class(const class_t *class); 00038 int verify_individual(const individual_t *individual); 00039 int verify_entity(const void *entity); 00040 int verify_property(const property_t *prop); 00041 int verify_individual_prop_list(const individual_t *individual, list_t *prop_list); 00042 int verify_subscription_container(const subscription_container_t *container); 00043 00044 00045 #endif /* _CHECK_FUNC_H */