/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                   Copyright (c) 2002 Zanoza Software.                   *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:
   *--------------------------------------------------------------------------
 * @created: Monday, December 08, 2003 12:19:07
 */

#if !defined(zmIOTypes_h_included)
#define zmIOTypes_h_included

#include <zmodeler.h>

#define Z3D_ID_DECLARATION              0x4C434544 //"DECL"
#define Z3D_ID_DATA                     0x41544144 //"DATA"
#define Z3D_ID_THUMBNAIL                0x424D4854 //"THMB"
#define Z3D_ID_FILEINFO                 0x4F464E49 //"INFO"
#define Z3D_ID_SUBSTREAM                0x54534253 //"SBST"

#define Z3D_ID_END_OF_FILE              0x46444E45 //"ENDF"

namespace core
{
  namespace io
  {
    // re-creaction mode for ISerializeable
    enum eReCreationMode
    {
      // creation mode bits:
      ERC_INLINE_CHUNK            = 0x0000, //has no class.
      ERC_PERSISTENT_CLASS        = 0x0011,
      ERC_PERSISTENT_SERVICE      = 0x0021,
      ERC_TRANSIENT_CLASS         = 0x0012,
      ERC_TRANSIENT_SERVICE       = 0x0022,
      ERC_TRANSIENT_RESOLVEABLE   = 0x0042,
      ERC_PURE_RESOLVEABLE        = 0x0040,

      ERC_FORCE_DWORD = 0x7FFFFFFF
    };
#define ZM_IO_IS_PERSISTENT(v)  (((DWORD)(v) & 0x0001) != 0)
#define ZM_IO_IS_TRANSIENT(v)   (((DWORD)(v) & 0x0002) != 0)
#define ZM_IO_IS_CLASS(v)       (((DWORD)(v) & 0x0010) != 0)
#define ZM_IO_IS_SERVICE(v)     (((DWORD)(v) & 0x0020) != 0)
#define ZM_IO_IS_RESOLVEABLE(v) (((DWORD)(v) & 0x0040) != 0)
  };//io
};//core

#endif