base/libs/qdecoder/qEntry.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "qDecoder.h"
#include "qInternal.h"

Include dependency graph for qEntry.c:

Go to the source code of this file.

FunctionsTitleTestFour

const Q_NLOBJqEntryFirst (Q_ENTRY *entry)
bool qEntryFree (Q_ENTRY *entry)
const void * qEntryGet (Q_ENTRY *entry, const char *name, int *size)
const void * qEntryGetCase (Q_ENTRY *entry, const char *name, int *size)
int qEntryGetInt (Q_ENTRY *entry, const char *name)
int qEntryGetIntCase (Q_ENTRY *entry, const char *name)
int qEntryGetIntf (Q_ENTRY *entry, char *format,...)
int qEntryGetIntLast (Q_ENTRY *entry, const char *name)
int qEntryGetIntNext (Q_ENTRY *entry, const char *name)
int qEntryGetIntNextCase (Q_ENTRY *entry, const char *name)
const void * qEntryGetLast (Q_ENTRY *entry, const char *name, int *size)
const void * qEntryGetNext (Q_ENTRY *entry, const char *name, int *size)
const void * qEntryGetNextCase (Q_ENTRY *entry, const char *name, int *size)
int qEntryGetNo (Q_ENTRY *entry, const char *name)
int qEntryGetNum (Q_ENTRY *entry)
const char * qEntryGetStr (Q_ENTRY *entry, const char *name)
const char * qEntryGetStrCase (Q_ENTRY *entry, const char *name)
const char * qEntryGetStrf (Q_ENTRY *entry, char *format,...)
const char * qEntryGetStrLast (Q_ENTRY *entry, const char *name)
const char * qEntryGetStrNext (Q_ENTRY *entry, const char *name)
const char * qEntryGetStrNextCase (Q_ENTRY *entry, const char *name)
Q_ENTRYqEntryInit (void)
int qEntryLoad (Q_ENTRY *entry, const char *filepath, char sepchar, bool decode)
const Q_NLOBJqEntryNext (Q_ENTRY *entry)
bool qEntryPrint (Q_ENTRY *entry, FILE *out, bool print_object)
bool qEntryPut (Q_ENTRY *entry, const char *name, const void *object, int size, bool update)
bool qEntryPutInt (Q_ENTRY *entry, const char *name, int num, bool update)
bool qEntryPutStr (Q_ENTRY *entry, const char *name, const char *str, bool update)
bool qEntryPutStrf (Q_ENTRY *entry, const char *name, bool update, char *format,...)
int qEntryRemove (Q_ENTRY *entry, const char *name)
bool qEntryReverse (Q_ENTRY *entry)
bool qEntrySave (Q_ENTRY *entry, const char *filepath, char sepchar, bool encode)


Detailed Description

Linked-list Data Structure API

   [Code sample - String]

   // sample data
   struct MY_OBJ *my_obj = getNewMyOjb(); // sample object
   char *my_str = "hello"; // sample string
   int my_int = 1; // sample integer

   // store into linked-list
   Q_ENTRY *entries = qEntryInit();
   entries = qEntryPut(entries, "obj", (void*)my_obj, sizeof(struct MY_OBJ), true);
   entries = qEntryPutStr(entries, "obj", my_str, true);
   entries = qEntryPutInt(entries, "obj", my_int, true);

   // print out
   qEntryPrint(entries, stdout, false);

   // free object
   qEntryFree(entries);

   [Result]

Definition in file qEntry.c.


Generated on Sat Nov 18 07:00:44 2017 for JSOC_Documentation by  doxygen 1.5.7.1