-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJJFormat.h
49 lines (43 loc) · 1.69 KB
/
JJFormat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Argus Open Source
* Software to apply Statistical Disclosure Control techniques
*
* Copyright 2014 Statistics Netherlands
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the European Union Public Licence
* (EUPL) version 1.1, as published by the European Commission.
*
* You can find the text of the EUPL v1.1 on
* https://joinup.ec.europa.eu/software/page/eupl/licence-eupl
*
* This software is distributed on an "AS IS" basis without
* warranties or conditions of any kind, either express or implied.
*/
#if !defined JJFormat_h
#define JJFormat_h
#include <vector>
#include "Table.h"
#include "DataCell.h"
#include "Variable.h"
struct TabDimProp {
int nCode;
int nParent;
};
//class __declspec(dllexport) CJJFormat
class CJJFormat
{
public:
int nSetAtSec;
long SetCellNrBogus(CTable *tab, CVariable *var, long CellNr);
bool SetSecUnSafe(CTable *tab, CVariable *var,FILE *fd, bool WithBogus);
bool SetSecondaryUnsafe(const char *FileName, CTable *tab, CVariable *var, long *nSetSecondary, long *ErrorCode, bool WithBogus);
long GetCellNrFromIndices(int nDim, long *DimNr, TabDimProp *tdp);
int GetRange(CVariable &var, int CodeIndex, std::vector<unsigned int> &Children, bool WithBogus);
bool WriteCells(FILE *fd, FILE *fdFrq, double LowerBound, double UpperBound, CTable *tab, CVariable *var, int nDecResp, bool WithBogus, bool AsPerc, bool ForRounding, double MaxCost, double MaxResp);
bool WriteRestrictions(FILE *fd, CTable *tab, CVariable *var, bool WithBogus);
void WriteRange(FILE *fd, CTable *tab, CVariable *var, int dim, long *DimNr, int niv, bool WithBogus, TabDimProp *tdp);
CJJFormat();
virtual ~CJJFormat();
};
#endif // JJFormat_h