sprint 1-alpha
Classes | Namespaces | Defines | Typedefs | Functions
sprint/archive/archive.h File Reference

contains some methods to handle a JSON like file The base idea is to have several level of file More...

#include <cstdio>
#include <cstring>
#include <sprint/sysdef.h>
#include <sprint/container/alias.h>

Go to the source code of this file.

Classes

class  sprint::BaseArchive
class  sprint::ArchiveOut
 An Output Archive: an object to save a configuration. More...
struct  sprint::DefineList
 Una lista di Define (macro) More...
class  sprint::ArchiveInBase
class  sprint::ArchiveImporter
class  sprint::ArchiveIn
 An object used to read a configuration. More...
class  sprint::SemanthicContext< T >

Namespaces

namespace  sprint
 

Sprint is a lightweight c++ library to handle different task with crossplatform attention (trying to compile both on MSVC and Mingw on WIn32 and GCC on Linux.


Defines

#define ARCHIVE_OK   0
#define ARCHIVE_EOF   -2
#define ARCHIVE_EOS   -3
#define ARCHIVE_BOS   -4
#define ARCHIVE_ERROR   -5
#define PRIVATESEMANTHIC   static SEMANTHIC
#define AF_TEXT   0
#define AF_BINARY   1
#define AF_XML   2
#define AF_JSON   3
#define FLAG_OPENFORWRITE   0x01
#define FLAG_ROOT   0x02
#define FLAG_BINARY   0x80
#define SIT_UNKNOWN   0
#define SIT_SECTION   1
#define SIT_STRING   2
#define PUSHSEMANTHIC(a, s)   ; const char **__oldsem = (a)->set_semanthic(s);
#define POPSEMANTHIC(a)   ; (a)->set_semanthic(__oldsem);
#define SEMANTHICSCOPE(a, s)   ; sprint::SemanthicContext<typeof(a)> _ctx(a, s);

Typedefs

typedef const char * sprint::SEMANTHIC []
 semanthic format

Functions

BOOL sprint::ArchiveGenericExport (ArchiveOut *a, const BYTE *priv, const char **semanthic)
BOOL sprint::ArchiveGenericImport (ArchiveIn *a, BYTE *priv, const char **semanthic)
void sprint::ArchiveSetServerName (const char *name)

Detailed Description

contains some methods to handle a JSON like file The base idea is to have several level of file


Define Documentation

#define ARCHIVE_BOS   -4

begin of section

#define ARCHIVE_EOF   -2

end of file

#define ARCHIVE_EOS   -3

end of section

#define ARCHIVE_ERROR   -5

generic error

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines