/*==========================================================================*/
/* Copyright (c) 1999 - Sykes Enterprises Inc. - All rights reserved        */
/*--------------------------------------------------------------------------*/
/* Sykes grants you ("Licensee") a non-exclusive, royalty free, license to  */
/* use, modify and redistribute this software in source and binary code     */
/* form, provided that i) this copyright notice and license appear on all   */
/* copies of the software; and ii) Licensee does not utilize the software   */
/* in a manner which is disparaging to Sykes.                               */
/*                                                                          */
/* This software is provided "AS IS", without a warranty of any kind. ALL   */
/* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING */
/* ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR        */
/* PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SYKES AND ITS          */
/* LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A  */
/* RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE OR ITS           */
/* DERIVATIVES. IN NO EVENT WILL SYKES OR ITS LICENSORS BE LIABLE FOR ANY   */
/* LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL,          */
/* CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND        */
/* REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR      */
/* INABILITY TO USE SOFTWARE, EVEN IF SYKES HAS BEEN ADVISED OF THE         */
/* POSSIBILITY OF SUCH DAMAGES.                                             */
/*==========================================================================*/

#ifndef __OKLITETMRECORD_H
#define __OKLITETMRECORD_H

#pragma warning(disable:4786)

#include <stdlib.h>
#include <string>

using namespace std;

#define okLTM_LBUF           5120


/*--------------------------------------------------------------------------*/

class okLiteTMRecord
{
public:

	/// Constructor
	okLiteTMRecord () : m_sTarget(""), m_sType(""), m_sId(""),
		m_nX(-1), m_nY(-1), m_nCX(-1), m_nCY(-1)
		{};

	/// Destructor
	~okLiteTMRecord ()
		{};

	/// Reads a record
	bool Read (FILE* p_pFile);

	/// Writes a record
	bool Write (FILE* p_pFile, long& p_rlIndexPos);


public:

	string               m_sSource;
	string               m_sTarget;
	string               m_sType;
	string               m_sId;
	int                  m_nX;
	int                  m_nY;
	int                  m_nCX;
	int                  m_nCY;
};


#endif // __OKLITETMRECORD_H


