/*
 * zGo2Log.h
 * 
 * Gocator system communication library
 * Copyright (C) 2010 by LMI Technologies Inc.
 * 
 * Licensed under The MIT License.
 * Redistributions of files must retain the above copyright notice.
 */
#ifndef LMITECH_GO2_Z_LOG_H_INCLUDED
#define LMITECH_GO2_Z_LOG_H_INCLUDED

#include <Go2Log.h>
#include <zFile.h>
#include <zSerializer.h>
#include <zResult.h>
#include <z/zGo2Object.h>
#include <Go2ApiBegin.h>

typedef struct Go2LogClass
{
    GO2_OBJECT_FIELDS(); 
    
    zFile stream; 
    zSerializer serializer; 
} Go2LogClass; 

GO2_EXPORT(Go2Status) Go2Log_Init(Go2Log log, const Go2Char* path, Go2Bool read); 

GO2_EXPORT(Go2Status) Go2Log_VRelease(Go2Log log); 

#include <Go2ApiEnd.h>

#endif          /* #ifndef LMITECH_GO2_Z_LOG_H_INCLUDED */