ss_properties.c File Reference

Contains functions for work with properties throw SS. More...

#include "ss_properties.h"

Functions

int ss_set_property_for_individual (individual_t *ind, char *propname, void *data)
 Sets property for individual in SS and localy by name.
int ss_set_property_for_class (class_t *ind, char *propname, void *data)
 Sets property for class in SS and localy by name.


Detailed Description

Contains functions for work with properties throw SS.

Vanag Pavel <vanag@cs.karelia.ru>

Date:
05 April, 2010
Version:
0.2alpha

LICENSE

SmartSlog KP Library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

SmartSlog KP Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with SmartSlog KP Library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

DESCRIPTION

Contains functions for work with properties throw SS. This file is part of PetrSU KP library.

Function Documentation

int ss_set_property_for_class ( class_t *  ind,
char *  propname,
void *  data 
)

Sets property for class in SS and localy by name.

Checks class correctness: cardinality, property values limitation and sets property for entity in SS and localy. Function sets global PetrSU KP Library's errno.

Parameters:
[in] individual_t *ind. Pointer to the individual struct.
[in] char *propname. Pointer to the char array with name.
[in] void *data. Pointer to the value.
Returns:
int. Status of the operation when completed (0 if successfull, otherwise -1).

int ss_set_property_for_individual ( individual_t *  ind,
char *  propname,
void *  data 
)

Sets property for individual in SS and localy by name.

Checks individual correctness: cardinality, property values limitation and sets property for entity in SS and localy. Function sets global PetrSU KP Library's errno.

Parameters:
[in] individual_t *ind. Pointer to the individual struct.
[in] char *propname. Pointer to the char array with name.
[in] void *data. Pointer to the value.
Returns:
int. Status of the operation when completed (0 if successfull, otherwise -1).


doxygen