stringlist2.h
Go to the documentation of this file.
/***************************************************************************
$RCSfile$
-------------------
cvs : $Id$
begin : Thu Apr 03 2003
copyright : (C) 2003 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2.1 of the License, or (at your option) any later version. *
* *
* This 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 *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
* MA 02111-1307 USA *
* *
***************************************************************************/
#ifndef GWENHYWFAR_STRINGLIST2_H
#define GWENHYWFAR_STRINGLIST2_H
#include <gwenhywfar/gwenhywfarapi.h>
#include <gwenhywfar/stringlist.h>
#include <gwenhywfar/types.h>
#include <gwenhywfar/refptr.h>
#include <gwenhywfar/list.h>
#include <gwenhywfar/db.h>
#include <gwenhywfar/xml.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct GWEN_STRINGLIST2 GWEN_STRINGLIST2;
typedef GWEN_LIST_ITERATOR GWEN_STRINGLIST2_ITERATOR;
typedef enum {
GWEN_StringList2_IntertMode_AlwaysAdd=0,
GWEN_StringList2_IntertMode_NoDouble,
GWEN_StringList2_IntertMode_Reuse
} GWEN_STRINGLIST2_INSERTMODE;
GWENHYWFAR_API
GWEN_STRINGLIST2 *GWEN_StringList2_new(void);
GWENHYWFAR_API
void GWEN_StringList2_free(GWEN_STRINGLIST2 *sl2);
GWENHYWFAR_API
GWEN_STRINGLIST2 *GWEN_StringList2_dup(GWEN_STRINGLIST2 *sl2);
GWENHYWFAR_API
int GWEN_StringList2_toDb(GWEN_STRINGLIST2 *sl2, GWEN_DB_NODE *db, const char *varName);
GWENHYWFAR_API
GWEN_STRINGLIST2 *GWEN_StringList2_fromDb(GWEN_DB_NODE *db, const char *name, GWEN_STRINGLIST2_INSERTMODE m);
GWENHYWFAR_API
int GWEN_StringList2_toXml(GWEN_STRINGLIST2 *sl2, GWEN_XMLNODE *node);
GWENHYWFAR_API
GWEN_STRINGLIST2 *GWEN_StringList2_fromXml(GWEN_XMLNODE *node, GWEN_STRINGLIST2_INSERTMODE m);
GWENHYWFAR_API
void GWEN_StringList2_SetSenseCase(GWEN_STRINGLIST2 *sl2, int i);
GWENHYWFAR_API
void GWEN_StringList2_SetIgnoreRefCount(GWEN_STRINGLIST2 *sl2, int i);
GWENHYWFAR_API
int GWEN_StringList2_AppendString(GWEN_STRINGLIST2 *sl2,
const char *s,
int take,
GWEN_STRINGLIST2_INSERTMODE m);
GWENHYWFAR_API
int GWEN_StringList2_InsertString(GWEN_STRINGLIST2 *sl2,
const char *s,
int take,
GWEN_STRINGLIST2_INSERTMODE m);
GWENHYWFAR_API int GWEN_StringList2_RemoveString(GWEN_STRINGLIST2 *sl2,
const char *s);
GWENHYWFAR_API int GWEN_StringList2_HasString(const GWEN_STRINGLIST2 *sl2,
const char *s);
GWENHYWFAR_API const char *GWEN_StringList2_GetStringAt(const GWEN_STRINGLIST2 *sl2, int idx);
GWENHYWFAR_API
GWEN_STRINGLIST2_ITERATOR *GWEN_StringList2_First(const GWEN_STRINGLIST2 *l);
GWENHYWFAR_API
GWEN_STRINGLIST2_ITERATOR *GWEN_StringList2_Last(const GWEN_STRINGLIST2 *l);
GWENHYWFAR_API
void GWEN_StringList2Iterator_free(GWEN_STRINGLIST2_ITERATOR *li);
GWENHYWFAR_API
const char *GWEN_StringList2Iterator_Previous(GWEN_STRINGLIST2_ITERATOR *li);
GWENHYWFAR_API
const char *GWEN_StringList2Iterator_Next(GWEN_STRINGLIST2_ITERATOR *li);
GWENHYWFAR_API
const char *GWEN_StringList2Iterator_Data(GWEN_STRINGLIST2_ITERATOR *li);
GWENHYWFAR_API
unsigned int
GWEN_StringList2Iterator_GetLinkCount(const GWEN_STRINGLIST2_ITERATOR *li);
GWENHYWFAR_API
GWEN_REFPTR *
GWEN_StringList2Iterator_DataRefPtr(GWEN_STRINGLIST2_ITERATOR *li);
GWENHYWFAR_API void GWEN_StringList2_Dump(const GWEN_STRINGLIST2 *sl2);
GWENHYWFAR_API unsigned int GWEN_StringList2_GetCount(const GWEN_STRINGLIST2 *l);
#ifdef __cplusplus
}
#endif
#endif
db.h
GWEN_DB_NODE
struct GWEN_DB_NODE GWEN_DB_NODE
Definition db.h:228
gwenhywfarapi.h
GWENHYWFAR_API
#define GWENHYWFAR_API
Definition gwenhywfarapi.h:67
list.h
GWEN_LIST_ITERATOR
struct GWEN_LIST_ITERATOR GWEN_LIST_ITERATOR
Definition list.h:72
refptr.h
GWEN_REFPTR
struct GWEN_REFPTR GWEN_REFPTR
Definition refptr.h:45
GWEN_StringList2_HasString
GWENHYWFAR_API int GWEN_StringList2_HasString(const GWEN_STRINGLIST2 *sl2, const char *s)
GWEN_STRINGLIST2
struct GWEN_STRINGLIST2 GWEN_STRINGLIST2
Definition stringlist2.h:43
GWEN_StringList2_dup
GWENHYWFAR_API GWEN_STRINGLIST2 * GWEN_StringList2_dup(GWEN_STRINGLIST2 *sl2)
GWEN_StringList2_First
GWENHYWFAR_API GWEN_STRINGLIST2_ITERATOR * GWEN_StringList2_First(const GWEN_STRINGLIST2 *l)
GWEN_StringList2_Dump
GWENHYWFAR_API void GWEN_StringList2_Dump(const GWEN_STRINGLIST2 *sl2)
GWEN_StringList2_toXml
GWENHYWFAR_API int GWEN_StringList2_toXml(GWEN_STRINGLIST2 *sl2, GWEN_XMLNODE *node)
GWEN_StringList2Iterator_Next
GWENHYWFAR_API const char * GWEN_StringList2Iterator_Next(GWEN_STRINGLIST2_ITERATOR *li)
GWEN_StringList2_InsertString
GWENHYWFAR_API int GWEN_StringList2_InsertString(GWEN_STRINGLIST2 *sl2, const char *s, int take, GWEN_STRINGLIST2_INSERTMODE m)
GWEN_StringList2_GetStringAt
GWENHYWFAR_API const char * GWEN_StringList2_GetStringAt(const GWEN_STRINGLIST2 *sl2, int idx)
GWEN_StringList2_Last
GWENHYWFAR_API GWEN_STRINGLIST2_ITERATOR * GWEN_StringList2_Last(const GWEN_STRINGLIST2 *l)
GWEN_StringList2_RemoveString
GWENHYWFAR_API int GWEN_StringList2_RemoveString(GWEN_STRINGLIST2 *sl2, const char *s)
GWEN_StringList2_AppendString
GWENHYWFAR_API int GWEN_StringList2_AppendString(GWEN_STRINGLIST2 *sl2, const char *s, int take, GWEN_STRINGLIST2_INSERTMODE m)
GWEN_StringList2_GetCount
GWENHYWFAR_API unsigned int GWEN_StringList2_GetCount(const GWEN_STRINGLIST2 *l)
GWEN_StringList2Iterator_free
GWENHYWFAR_API void GWEN_StringList2Iterator_free(GWEN_STRINGLIST2_ITERATOR *li)
GWEN_StringList2_fromDb
GWENHYWFAR_API GWEN_STRINGLIST2 * GWEN_StringList2_fromDb(GWEN_DB_NODE *db, const char *name, GWEN_STRINGLIST2_INSERTMODE m)
GWEN_StringList2_fromXml
GWENHYWFAR_API GWEN_STRINGLIST2 * GWEN_StringList2_fromXml(GWEN_XMLNODE *node, GWEN_STRINGLIST2_INSERTMODE m)
GWEN_StringList2_SetSenseCase
GWENHYWFAR_API void GWEN_StringList2_SetSenseCase(GWEN_STRINGLIST2 *sl2, int i)
GWEN_StringList2Iterator_Data
GWENHYWFAR_API const char * GWEN_StringList2Iterator_Data(GWEN_STRINGLIST2_ITERATOR *li)
GWEN_STRINGLIST2_ITERATOR
GWEN_LIST_ITERATOR GWEN_STRINGLIST2_ITERATOR
Definition stringlist2.h:44
GWEN_StringList2_toDb
GWENHYWFAR_API int GWEN_StringList2_toDb(GWEN_STRINGLIST2 *sl2, GWEN_DB_NODE *db, const char *varName)
GWEN_StringList2_free
GWENHYWFAR_API void GWEN_StringList2_free(GWEN_STRINGLIST2 *sl2)
GWEN_StringList2Iterator_DataRefPtr
GWENHYWFAR_API GWEN_REFPTR * GWEN_StringList2Iterator_DataRefPtr(GWEN_STRINGLIST2_ITERATOR *li)
GWEN_STRINGLIST2_INSERTMODE
GWEN_STRINGLIST2_INSERTMODE
Definition stringlist2.h:47
GWEN_StringList2_IntertMode_NoDouble
@ GWEN_StringList2_IntertMode_NoDouble
Definition stringlist2.h:49
GWEN_StringList2_IntertMode_AlwaysAdd
@ GWEN_StringList2_IntertMode_AlwaysAdd
Definition stringlist2.h:48
GWEN_StringList2_IntertMode_Reuse
@ GWEN_StringList2_IntertMode_Reuse
Definition stringlist2.h:50
GWEN_StringList2_SetIgnoreRefCount
GWENHYWFAR_API void GWEN_StringList2_SetIgnoreRefCount(GWEN_STRINGLIST2 *sl2, int i)
GWEN_StringList2Iterator_GetLinkCount
GWENHYWFAR_API unsigned int GWEN_StringList2Iterator_GetLinkCount(const GWEN_STRINGLIST2_ITERATOR *li)
GWEN_StringList2_new
GWENHYWFAR_API GWEN_STRINGLIST2 * GWEN_StringList2_new(void)
GWEN_StringList2Iterator_Previous
GWENHYWFAR_API const char * GWEN_StringList2Iterator_Previous(GWEN_STRINGLIST2_ITERATOR *li)
stringlist.h
types.h
xml.h
GWEN_XMLNODE
struct GWEN__XMLNODE GWEN_XMLNODE
Definition xml.h:156