DCL 3.7.4
Loading...
Searching...
No Matches
RowGroup Class Reference

#include <LinkUtility.h>

Public Member Functions

 RowGroup (TextTemplate *pSource, int nGroup)
void assign (TextTemplate *pDest, int nRow)

Protected Attributes

TextTemplate__pOdd
TextTemplate__pEven
int __nGroup

Detailed Description

Definition at line 141 of file LinkUtility.h.

Constructor & Destructor Documentation

◆ RowGroup()

RowGroup::RowGroup ( TextTemplate * pSource,
int nGroup )

Definition at line 415 of file LinkUtility.cpp.

419{
420 __pOdd = NULL;
421 __pEven = NULL;
422 __nGroup = nGroup;
423 if (pSource) {
424 __pOdd = pSource->atP(L"ODD");
425 __pEven = pSource->atP(L"EVEN");
426 }
427}
#define NULL
Definition Config.h:312
TextTemplate * __pOdd
TextTemplate * __pEven

Member Function Documentation

◆ assign()

void RowGroup::assign ( TextTemplate * pDest,
int nRow )

Definition at line 428 of file LinkUtility.cpp.

432{
433 int n = ((nRow - 1) / __nGroup) % 2;
434 if (n) {
435 // even
436 if (__pEven)
437 pDest->assign(L"_GROUP", *__pEven);
438 }
439 else {
440 if (__pOdd)
441 pDest->assign(L"_GROUP", *__pOdd);
442 }
443}

Member Data Documentation

◆ __nGroup

int RowGroup::__nGroup
protected

Definition at line 146 of file LinkUtility.h.

◆ __pEven

TextTemplate* RowGroup::__pEven
protected

Definition at line 145 of file LinkUtility.h.

◆ __pOdd

TextTemplate* RowGroup::__pOdd
protected

Definition at line 144 of file LinkUtility.h.


The documentation for this class was generated from the following files: