You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
1.9 KiB
C++
77 lines
1.9 KiB
C++
// XTPReportRecordItemConstraint.cpp : implementation of the CXTPReportRecordItemConstraint class.
|
|
//
|
|
// This file is a part of the XTREME REPORTCONTROL MFC class library.
|
|
// (c)1998-2012 Codejock Software, All Rights Reserved.
|
|
//
|
|
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
|
|
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
|
|
// CONSENT OF CODEJOCK SOFTWARE.
|
|
//
|
|
// THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
|
|
// IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
|
|
// YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
|
|
// SINGLE COMPUTER.
|
|
//
|
|
// CONTACT INFORMATION:
|
|
// support@codejock.com
|
|
// http://www.codejock.com
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include "Common/XTPCustomHeap.h"
|
|
|
|
#include "XTPReportDefines.h"
|
|
#include "XTPReportRecordItem.h"
|
|
#include "XTPReportRecordItemConstraint.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// CXTPReportRecordItemConstraint
|
|
|
|
CXTPReportRecordItemConstraint::CXTPReportRecordItemConstraint()
|
|
{
|
|
|
|
m_dwData = 0;
|
|
m_nIndex = 0;
|
|
}
|
|
|
|
int CXTPReportRecordItemConstraint::GetIndex() const
|
|
{
|
|
return m_nIndex;
|
|
}
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// CXTPReportRecordItemConstraints
|
|
|
|
CXTPReportRecordItemConstraints::CXTPReportRecordItemConstraints()
|
|
{
|
|
}
|
|
|
|
CXTPReportRecordItemConstraints::~CXTPReportRecordItemConstraints()
|
|
{
|
|
RemoveAll();
|
|
}
|
|
|
|
|
|
int CXTPReportRecordItemConstraints::GetCount() const
|
|
{
|
|
return (int)m_arrConstraints.GetSize();
|
|
}
|
|
|
|
CXTPReportRecordItemConstraint* CXTPReportRecordItemConstraints::GetAt(int nIndex) const
|
|
{
|
|
return m_arrConstraints.GetAt(nIndex);
|
|
}
|
|
|
|
void CXTPReportRecordItemConstraints::RemoveAll()
|
|
{
|
|
for (int i = 0; i < GetCount(); i++)
|
|
{
|
|
if (m_arrConstraints[i] != NULL)
|
|
m_arrConstraints[i]->InternalRelease();
|
|
}
|
|
m_arrConstraints.RemoveAll();
|
|
}
|
|
|