/////////////////////////////////////////////////////////////////////
// (C) Copyright 1993-2005 by Autodesk, Inc. 
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted, 
// provided that the above copyright notice appears in all copies and 
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting 
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. 
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK, INC. 
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to 
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
//
//
/////////////////////////////////////////////////////////////////////
// includes from ObjectARX Wizard
#ifdef _DEBUG
#define _DEBUG_WAS_DEFINED
#undef _DEBUG
#endif
#include "stdafx.h"           // MFC stuff
#ifdef _DEBUG_WAS_DEFINED
#define _DEBUG
#undef _DEBUG_WAS_DEFINED
#endif

#include "minDatum.h"

extern "C" HINSTANCE _hdllInstance;


//LPCTSTR _version_Datum = /*MSG0*/"Minimum Datum - %d";

/////////////////////////////////////////////////////////////////////
// standard support for of datum target symboogy GB
/////////////////////////////////////////////////////////////////////
ACRX_DXF_DEFINE_MEMBERS(TestDatumStd,AcmDatumStdISO,AcDb::kDHL_CURRENT, AcDb::kMReleaseCurrent,0,TESTDATUMSTD,_T("NEWDATUM"));

TestDatumStd::TestDatumStd()
{
}

TestDatumStd::~TestDatumStd()
{
}

Acm::ErrorStatus
TestDatumStd::getRevision(CString& rev, Adesk::UInt16& year) const
{
  assertReadEnabled();
  year = 1999;
//  rev.Format(_version_Datum,year);
  rev.Format(_T("Minimum Datum - %d"),year);
  return Acm::eOk;
}

Adesk::Boolean
TestDatumStd::isCompatibleTo(const AcmStandard* pStd) const
{
  assertReadEnabled();
  assert(pStd != NULL);
  return pStd->isKindOf(AcmStandardISO::desc());
}


