st_object.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003  -------------------
00004  cvs         : $Id: csv_p.h 120 2003-12-03 23:29:33Z aquamaniac $
00005  begin       : Thu Oct 30 2003
00006  copyright   : (C) 2003 by Martin Preuss
00007  email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU Lesser General Public            *
00013  *   License as published by the Free Software Foundation; either          *
00014  *   version 2.1 of the License, or (at your option) any later version.    *
00015  *                                                                         *
00016  *   This library is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00019  *   Lesser General Public License for more details.                       *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU Lesser General Public      *
00022  *   License along with this library; if not, write to the Free Software   *
00023  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00024  *   MA  02111-1307  USA                                                   *
00025  *                                                                         *
00026  ***************************************************************************/
00027 
00028 #ifndef GWEN_STO_OBJECT_H
00029 #define GWEN_STO_OBJECT_H
00030 
00031 #include <gwenhywfar/types.h>
00032 #include <gwenhywfar/list2.h>
00033 
00034 #define GWEN_STO_OBJECT_FLAGS_DELETED   0x00000001
00035 #define GWEN_STO_OBJECT_FLAGS_TO_DELETE 0x00000002
00036 
00037 
00038 typedef struct GWEN_STO_OBJECT GWEN_STO_OBJECT;
00039 
00040 
00041 GWEN_LIST2_FUNCTION_LIB_DEFS(GWEN_STO_OBJECT, GWEN_StoObject, GWENHYWFAR_API)
00042 
00043 
00044 #include <gwenhywfar/st_type.h>
00045 
00046 
00047 GWENHYWFAR_API
00048 GWEN_TYPE_UINT32 GWEN_StoObject_GetId(const GWEN_STO_OBJECT *o);
00049 
00050 GWENHYWFAR_API
00051 GWEN_STO_TYPE *GWEN_StoObject_GetType(const GWEN_STO_OBJECT *o);
00052 
00053 GWENHYWFAR_API
00054 int GWEN_StoObject_GetRefCount(const GWEN_STO_OBJECT *o);
00055 
00056 GWENHYWFAR_API
00057 int GWEN_StoObject_IncRefCount(GWEN_STO_OBJECT *o);
00058 
00059 GWENHYWFAR_API
00060 int GWEN_StoObject_DecRefCount(GWEN_STO_OBJECT *o);
00061 
00062 GWENHYWFAR_API
00063 void GWEN_StoObject_SetCharValue(GWEN_STO_OBJECT *o,
00064                                  const char *varName,
00065                                  const char *value,
00066                                  int overwrite);
00067 
00068 GWENHYWFAR_API
00069 const char *GWEN_StoObject_GetCharValue(const GWEN_STO_OBJECT *o,
00070                                         const char *varName,
00071                                         int idx,
00072                                         const char *defValue);
00073 
00074 GWENHYWFAR_API
00075 void GWEN_StoObject_SetIntValue(GWEN_STO_OBJECT *o,
00076                                 const char *varName,
00077                                 int value,
00078                                 int overwrite);
00079 
00080 GWENHYWFAR_API
00081 int GWEN_StoObject_GetIntValue(const GWEN_STO_OBJECT *o,
00082                                const char *varName,
00083                                int idx,
00084                                int defValue);
00085 
00086 #endif
00087 
00088 
00089 

Generated on Sat Sep 16 11:19:15 2006 for gwenhywfar by  doxygen 1.4.7