
/*
  File: include/ioutils/ioutils.h
  Description: Sonique 2 ioutils header
  Part of the Mantis project
  (c) 2002 Lycos Inc.

  This file is distributed for the sole purpose of allowing you to write
  software to interface with Sonique 2 and other Mantis programs. It is
  not to be modified or used for any other purpose without written
  authorization.

  If you redistribute this file, it must be in the original package
  complete with all other files provided, including the usage agreement.

  Do not remove this notice.
*/


#ifndef _IO_UTILS_H__
#define _IO_UTILS_H__

#ifdef DEBUG_INCLUDE_ORDER
#pragma message("Including " __FILE__ "\n" )
#endif


#if _MSC_VER > 1000
#pragma once
#endif

#include "mia.h"
#include "Interface_DAF.h"
#include "Interface_XML.h"
#include "Interface_INIParser.h"
#include "Interface_Prefs.h"
#include "Interface_Language.h"
#include "Interface_FileSynchFind.h"
#include "Interface_Console.h"
#include "MIAUtil.h"
#include "Interface_XMLHelper.h"


// {CFB93C1F-F177-47e0-ADCB-B52FBF9668BC}
DEFINE_MID( FID_IOUTILS, 0xcfb93c1f, 0xf177, 0x47e0, 0xad, 0xcb, 0xb5, 0x2f, 0xbf, 0x96, 0x68, 0xbc);

// {780383AD-6547-4a87-AA24-AAC6D2AC1CBA}
DEFINE_MID(MID_CONSOLE_SERVER, 0x780383ad, 0x6547, 0x4a87, 0xaa, 0x24, 0xaa, 0xc6, 0xd2, 0xac, 0x1c, 0xba);



typedef HeapMidPtr< MPackageMemory,					&FID_IOUTILS,	&MID_MEMORYPACKAGE					> PackageMemoryPtr;
typedef HeapMidPtr< MPackageReader,					&FID_IOUTILS,	&MID_PACKAGEREADER					> PackageReaderPtr;
typedef HeapMidPtr< MStructuredPackageReader,		&FID_IOUTILS,	&MID_STRUCTURED_PACKAGEREADER		> MStructuredPackageReaderPtr;
typedef HeapMidPtr< MZipHelper,		                &FID_IOUTILS,	&MID_ZIPHELPER                 		> ZipHelperPtr;


typedef HeapMidPtr< MXMLParser,					&FID_IOUTILS,	&MID_XML_PARSER					> XMLParserPtr;
typedef HeapMidPtr< MLanguageTranslator,		&FID_IOUTILS,	&MID_LANGUAGE_TRANSLATOR, true	> LanguageTranslatorPtr;

typedef HeapMidPtr< MINIParser,					&FID_IOUTILS,	&MID_INI_PARSER					> INIParserPtr;

typedef HeapMidPtr< MPreferences,				&FID_IOUTILS,	&MID_PREFS_STORAGE				> PreferencesPtr;

typedef HeapMidPtr< MFileSynchFind,				&FID_IOUTILS,	&MID_FILESYNCHFIND > FileSynchFindPtr;

typedef HeapMidPtr< MConsoleServer,				&FID_IOUTILS,	&MID_CONSOLE_SERVER,	true	> ConsoleServerPtr;

typedef HeapMidPtr< MDAFXMLInclude,				&FID_IOUTILS,	&MID_DAFXMLINCLUDE           	> PackageXMLHelperPtr;


#ifdef DEBUG_INCLUDE_ORDER
#pragma message("Done including " __FILE__ "\n" )
#endif

#endif

