#ifndef QRTRDATA_H_INCLUDED /***************************************************************************** * * Copyright (c) 1999, KL GROUP INC. All Rights Reserved. * http://www.klgroup.com * * This file is provided for demonstration and educational uses only. * Permission to use, copy, modify and distribute this file for * any purpose and without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all * copies, and that the name of KL Group not be used in advertising * or publicity pertaining to this material without the specific, * prior written permission of an authorized representative of * KL Group. * * KL GROUP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY * OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, OR NON-INFRINGEMENT. KL GROUP SHALL NOT BE LIABLE FOR ANY * DAMAGES SUFFERED BY USERS AS A RESULT OF USING, MODIFYING OR * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. */ #include "olch2d.h" typedef enum{ /* A type for the data set identifier rather than just #defines. */ DATASET1 = XRT_DATASET1, DATASET2 = XRT_DATASET2 }CFXrtDataset; typedef enum{ QUARTER1, QUARTER2, QUARTER3, QUARTER4 }CFQuarter; #define MONTHS_PER_QUARTER 3 /* Currently three months in a quarter - this is pending reveiw. */ typedef enum{ MONTH1, MONTH2, MONTH3 }CFMonth; typedef enum{ /* Set indexes into Summary data. */ INCOME, EXPENSES }CFSummarySets; typedef enum{ /* Point indexes into income data. */ SALARY, INVEST }CFIncomePts; typedef enum{ /* Point indexes into expense data. */ HOUSING, AUTO, TAXES, FOOD }CFExpensePts; typedef struct{ XrtDataHandle hSummaryData; CFQuarter quarter; unsigned year; XrtDataHandle income[MONTHS_PER_QUARTER]; XrtDataHandle expenses[MONTHS_PER_QUARTER]; }QuarterData; QuarterData* GetQuarterData(); void FreeQuarterData(QuarterData* pQuarterData); #define QRTRDATA_H_INCLUDED #endif /* ndef QRTRDATA_H_INCLUDED */