2.5.6.1 ASCIMP
Name
ASCIMP
Description
Declaration
typedef struct tagASCIMP{
int _id(IDE_ASCIMP_DELIMITED) iDelimited;
int _id(IDE_ASCIMP_DELIMCODE) iDelimiter;
char _id(IDE_ASCIMP_DELIMCHAR) cChar;
char _id(IDE_ASCIMP_COLWIDTHS) szFixedWidth[MAX_FIXED_COL_WIDTH];
int _id(IDE_ASCIMP_HEADLINES) iHeaderLines;
int _id(IDE_ASCIMP_SUBHEADLINES) iSubHeaderLines;
int _id(IDE_ASCIMP_AUTOSUBHEAD) iAutoSubHeaderLines;
int _id(IDE_ASCIMP_AUTOCOLTYPES) iAutoColTypes;
int _id(IDE_ASCIMP_TESTLINES) iTestLines;
int _id(IDE_ASCIMP_IMPORTMODE) iMode;
int _id(IDE_ASCIMP_NUMCOLUMNS) iNumColumns;
int _id(IDE_ASCIMP_PARTIAL) iPartial;
int _id(IDE_ASCIMP_PARTIALC1) iPartialC1;
int _id(IDE_ASCIMP_PARTIALC2) iPartialC2;
int _id(IDE_ASCIMP_PARTIALR1) iPartialR1;
int _id(IDE_ASCIMP_PARTIALR2) iPartialR2;
int _id(IDE_ASCIMP_RENAMEWKS) iRenameWks;
int _id(IDE_ASCIMP_APPLYRANGE) iApplyRange;
int _id(IDE_ASCIMP_RENAMECOLS) iRenameCols;
int _id(IDE_ASCIMP_LABEL) iLabels;
int _id(IDE_ASCIMP_MAXLABELS) iMaxLabels;
int _id(IDE_ASCIMP_LEADZERO) iLeadingZeroes;
int _id(IDE_ASCIMP_ALLOWALLTEXT) iAllowAllText;
int _id(IDE_ASCIMP_NONNUMERIC) iNonnumeric;
int _id(IDE_ASCIMP_MAXTESTLINES) iMaxTestLines;
int _id(IDE_ASCIMP_SKIPROWS) iSkipRows;
int _id(IDE_ASCIMP_READROWS) iReadRows;
char _id(IDE_ASCIMP_DATEFORMAT) szDateFormat[MAX_SIZE_CUSTOM_FORMAT];
int _id(IDE_ASCIMP_SKIPCHARS) iLabelSkipChars;
int _id(IDE_ASCIMP_LONGNAMES) nLongNames;
int _id(IDE_ASCIMP_UNITS) nUnits;
int _id(IDE_ASCIMP_FIRSTPARAMS) nFirstParams;
int _id(IDE_ASCIMP_NUMPARAMS) nNumParams;
int _id(IDE_ASCIMP_FIRSTUSERPARAMS) nFirstUserParams;
int _id(IDE_ASCIMP_NUMUSERPARAMS) nNumUserParams;
int _id(IDE_ASCIMP_FIRSTSAVE) nFirstSave;
int _id(IDE_ASCIMP_NUMSAVE) nNumSave;
DWORD _id(IDE_ASCIMP_FLAGS) flags;
int _id(IDE_ASCIMP_NUMSEP) nNumSep;
int _id(IDE_ASCIMP_SPECIALFORMAT) nSpeFmt;
char _id(IDE_ASCIMP_DELIMITERS) cDelimiters[ASCIMP_MAX_DELIMITERS];
char _id(IDE_ASCIMP_DELIMITERSARRAY) cDelimitersArray[ASCIMP_MAX_DELIMITERS];
char _id(IDE_ASCIMP_QUOTECHAR) cQuote;
char _id(IDE_ASCIMP_VERSION) cVersion;
} ASCIMP;
Members
- iDelimited
- 1 if delimited, 0 if Fixed format, szFixedWidth must be filled if iDelimited==0
- iDelimiter
- used only if iDelimited==1, one of the ASCIMP_DELIM_TAB, ASCIMP_DELIM_COMMA etc
- cChar
- used only if iDelimited==1 && iDelimiter==ASCIMP_DELIM_OTHER, char to be used as delimiter
- szFixedWidth
- for iDelimited==0, comma separated string for each col width
- iHeaderLines
- file header, before those header that can be used as column headings
- iSubHeaderLines
- subheader block, after iHeaderLines, the number of lines to be used in column labels and names
- iAutoSubHeaderLines
- =1 ignore iSubHeaderLines, auto determine, =0 to use iSubHeaderLines
- iAutoColTypes
- to change column type according to detection, 0=diable, 1=use detection, 2=detect but not to change if text column
- iTestLines
- Number of lines used for structure testing that must be consistent
- iMode
- ASCIMP_MODE_REPLACE_DATA, ASCIMP_MODE_APPEND_COLS etc
- iNumColumns
- num cols found from auto detection
- iPartial
- =1 to specify partial import, =0 if whole file imported, ignore iPartialC1, iPartialC2, iPartialR1, R2
- iPartialC1
- iPartialC2
- iPartialR1
- iPartialR2
- iRenameWks
- =1 to rename worksheet, =0 to keep current name
- iApplyRange
- not used anymore,
- iRenameCols
- =0 to keep column names, =1 to rename columns using 1st line above detected data, =2 use 2nd line etc
- iLabels
- =0 to keep current column labels, =1,2 etc as 1st, 2nd line from top of sub header block to rename labels
- iMaxLabels
- number of lines in subheader block to be used in column label rename
- iLeadingZeroes
- =1 to consider 0123 as numbers, =0 if 0123 is considered as text
- iAllowAllText
- =1 to allow import all text data, =0 NOT allow
- iNonnumeric
- this has to do with what to do when none-numeric is found in numeric column
- iMaxTestLines
- related to iTestLines, scan upto this number of lines for consistent structure
- iSkipRows
- allow skip rows, =0 if no skipping of rows
- iReadRows
- used only if iSkipRows > 0, and must not be 0. import will read iReadRows, then skip iSkipRows, then read iReadRows again
- szDateFormat
- iLabelSkipChars
- nLongNames
- Header line containing long column names
- nUnits
- Header line containing column units
- nFirstParams
- First header line containing column parameters
- nNumParams
- Number of header lines containing column parameters
- nFirstUserParams
- First header line containing column user parameters
- nNumUserParams
- Number of header lines containing column user parameters
- nFirstSave
- First header line to save into binary storage
- nNumSave
- Number of header lines to save into binary storage
- flags
- see AI_FLAG_* for uses
- nNumSep
- decimal char,'.'=NF_IS_AMERICAN, ','=NF_IS_EUROPEAN
- nSpeFmt
- cDelimiters
- cDelimitersArray
- support Delimiters like "AI", "BIG"
- cQuote
- cVersion
Remark
Examples
Header to Include
origin.h
See Also
Reference
|