#include <xfile.h>
Public Member Functions | |
long | give_maxlnsize () |
returns size of line buffer | |
void | set_maxlnsize (long lnsize) |
sets size of line buffer | |
XFILE () | |
~XFILE () | |
Public Attributes | |
xfsection * | asect |
pointer to actual section | |
long | col |
actual column | |
FILE * | file |
pointer to standard file structure | |
char * | fname |
name of opened file | |
long | id_sec |
index of actual section | |
long | ignorecase |
flag for case sensitive(=0)/case insensitive(=1) keyword searching | |
long | index_created |
flag for created index of particular sections | |
kwd_handling | kwdmode |
keyword handling mode | |
long | line |
actual line | |
long | lnfpos |
actual position of actual line beginning in file | |
char * | lnpostf |
postfix string of line end (for XFILE output) | |
long | lnpostfl |
length of lnpostf string | |
char * | lnpref |
prefix string of line beginning (for XFILE output) | |
long | lnprefl |
length of lnpref string | |
char * | lnstr |
line buffer where the actual file line is stored | |
long | maxlnover |
flag with the number of last oversized line (=0 if no oversized line detected) | |
long | num_sec |
number of detected sections | |
xfsection * | sect |
array with descriptions of detected sections | |
int | warning |
flag which handles warning (0=no warning/1=print warning/2=treat warning as an error) | |
Private Attributes | |
long | maxlnsize |
max line size |
Structure of file description. This file type is used for xfscanf function and it has extended functionality comparing with traditional FILE type -
Created by Tomas Koudelka, koudelka@cml.fsv.cvut.cz, 12.2006
Definition at line 45 of file xfile.h.
XFILE | ( | ) |
long give_maxlnsize | ( | ) |
returns size of line buffer
The function returns actual value of maximum line length i.e. size of line buffer for the given XFILE.
Created by Tomas Koudelka, 11.9.2013
Definition at line 46 of file xfile.cpp.
References maxlnsize.
Referenced by check_maxlnsize(), getgkwid(), getkwd_sect(), getnprop(), input_elem_edgebc(), input_elem_surfbc(), input_elem_vertbc(), main(), skip_space(), xf_resetsec(), xfclose(), xfdetect_sect(), and xfscanf().
void set_maxlnsize | ( | long | lnsize | ) |
sets size of line buffer
The function sets new value of maximum line length i.e. size of line buffer for the given XFILE. The size of line buffer is given by parameter lnsize.
lnsize | - size of line buffer |
Created by Tomas Koudelka, 11.9.2013
Definition at line 65 of file xfile.cpp.
References lnstr, maxlnsize, and memset().
Referenced by xfopen().
pointer to actual section
Definition at line 64 of file xfile.h.
Referenced by check_feof_eos(), checkeos(), cut_str_sec(), getkwd_sect(), skip_space(), xf_copysec(), xf_resetsec(), xf_setsec(), xfdetect_sect(), XFILE(), xfopen(), and xfscanf().
long col |
actual column
Definition at line 49 of file xfile.h.
Referenced by checkenumerr(), checkeos(), checkfeof(), checkscanferr(), getgkwid(), getkwd_sect(), input_elem_crsec(), input_elem_crsect(), input_elem_edgebc(), input_elem_eigstr(), input_elem_eltimefunc(), input_elem_eltimefunct(), input_elem_lcs(), input_elem_load(), input_elem_loadedge(), input_elem_loadsurf(), input_elem_loadvol(), input_elem_mat(), input_elem_matt(), input_elem_sourcet(), input_elem_surfbc(), input_elem_type(), input_elem_typet(), input_elem_vertbc(), input_lc(), input_nod_bocon(), input_nod_bocont(), input_nod_coupl_dofs(), input_nod_coupl_dofst(), input_nod_crsec(), input_nod_crsect(), input_nod_dof_tfunc(), input_nod_dof_tfunct(), input_nod_initcond(), input_nod_initcondt(), input_nod_lcs(), input_nod_load(), input_nod_ndof(), input_nod_sourcet(), input_nod_springs(), input_nod_tdload(), input_nod_temper(), proc_new_ln_fmt(), proc_ord_fmt(), matrt::read(), csect::read(), matr::read(), csec::read(), gtopology::read_gf(), read_inicd_file(), skip_space(), skipline(), xf_resetsec(), XFILE(), xfopen(), xfprintf(), and xfscanf().
FILE* file |
pointer to standard file structure
Definition at line 47 of file xfile.h.
Referenced by check_feof_eos(), check_maxlnsize(), checkeos(), checkfeof(), getgkwid(), getkwd_sect(), getnprop(), proc_new_ln_fmt(), skip_space(), xf_copysec(), xf_resetsec(), xfclose(), xfdetect_sect(), XFILE(), xfopen(), xfprintf(), and xfscanf().
char* fname |
name of opened file
Definition at line 51 of file xfile.h.
Referenced by check_maxlnsize(), checkenumerr(), checkeos(), checkfeof(), checkscanferr(), input_elem_crsec(), input_elem_crsect(), input_elem_edgebc(), input_elem_eigstr(), input_elem_eltimefunc(), input_elem_eltimefunct(), input_elem_lcs(), input_elem_load(), input_elem_loadedge(), input_elem_loadsurf(), input_elem_loadvol(), input_elem_mat(), input_elem_matt(), input_elem_sourcet(), input_elem_surfbc(), input_elem_type(), input_elem_typet(), input_elem_vertbc(), input_lc(), input_nod_bocon(), input_nod_bocont(), input_nod_coupl_dofs(), input_nod_coupl_dofst(), input_nod_crsec(), input_nod_crsect(), input_nod_dof_tfunc(), input_nod_dof_tfunct(), input_nod_initcond(), input_nod_initcondt(), input_nod_lcs(), input_nod_load(), input_nod_ndof(), input_nod_sourcet(), input_nod_springs(), input_nod_tdload(), input_nod_temper(), loadcaset::read(), matrt::read(), csect::read(), matr::read(), csec::read(), gtopology::read_gf(), adaptivityt::readinit(), adaptivity::readinit(), xf_resetsec(), xfclose(), XFILE(), xfopen(), xfscanf(), and ~XFILE().
long id_sec |
index of actual section
Definition at line 63 of file xfile.h.
Referenced by getkwd_sect(), xf_resetsec(), xf_setsec(), xfdetect_sect(), XFILE(), and xfopen().
long ignorecase |
flag for case sensitive(=0)/case insensitive(=1) keyword searching
Definition at line 59 of file xfile.h.
Referenced by getkwd(), getkwd_opt(), getkwd_sect(), import_T3d(), input(), input_crs(), input_crst(), input_elem_crsec(), input_elem_crsect(), input_elem_edgebc(), input_elem_eigstr(), input_elem_eltimefunc(), input_elem_eltimefunct(), input_elem_lcs(), input_elem_load(), input_elem_loadedge(), input_elem_loadsurf(), input_elem_loadvol(), input_elem_mat(), input_elem_matt(), input_elem_sourcet(), input_elem_surfbc(), input_elem_type(), input_elem_typet(), input_elem_vertbc(), input_materials(), input_materialst(), input_nod_bocon(), input_nod_bocont(), input_nod_coupl_dofs(), input_nod_coupl_dofst(), input_nod_crsec(), input_nod_crsect(), input_nod_dof_tfunc(), input_nod_dof_tfunct(), input_nod_initcond(), input_nod_initcondt(), input_nod_lcs(), input_nod_load(), input_nod_ndof(), input_nod_sourcet(), input_nod_springs(), input_nod_tdload(), input_nod_temper(), inputt(), main(), mefel_init(), metr_init(), pmefel_init(), pmetr_init(), ptrfel_init(), loadcaset::read(), seismtool::read(), read_inicd_file(), trfel_init(), xfdetect_sect(), XFILE(), xfopen(), and xfscanf().
long index_created |
flag for created index of particular sections
Definition at line 62 of file xfile.h.
Referenced by check_reqsec(), check_reqsec_t(), getkwd_sect(), dbcrs::readmc(), dbmat::readmm(), dbcrst::readtc(), dbmatt::readtm(), skip_space(), xf_resetsec(), xf_setsec(), xfdetect_sect(), XFILE(), and xfopen().
keyword handling mode
Definition at line 58 of file xfile.h.
Referenced by check_feof_eos(), checkeos(), cut_str_sec(), getkwd(), getkwd_opt(), getkwd_sect(), import_T3d(), input(), input_crs(), input_crst(), input_elem_crsec(), input_elem_crsect(), input_elem_edgebc(), input_elem_eigstr(), input_elem_eltimefunc(), input_elem_eltimefunct(), input_elem_lcs(), input_elem_load(), input_elem_loadedge(), input_elem_loadsurf(), input_elem_loadvol(), input_elem_mat(), input_elem_matt(), input_elem_sourcet(), input_elem_surfbc(), input_elem_type(), input_elem_typet(), input_elem_vertbc(), input_elemprop(), input_elempropt(), input_lc(), input_lct(), input_materials(), input_materialst(), input_nod_bocon(), input_nod_bocont(), input_nod_coupl_dofs(), input_nod_coupl_dofst(), input_nod_crsec(), input_nod_crsect(), input_nod_dof_tfunc(), input_nod_dof_tfunct(), input_nod_initcond(), input_nod_initcondt(), input_nod_lcs(), input_nod_load(), input_nod_ndof(), input_nod_sourcet(), input_nod_springs(), input_nod_tdload(), input_nod_temper(), input_nodprop(), input_nodpropt(), inputt(), main(), mefel_init(), metr_init(), pmefel_init(), pmetr_init(), ptrfel_init(), loadcaset::read(), seismtool::read(), read_inicd_file(), dbcrs::readmc(), dbmat::readmm(), dbcrst::readtc(), dbmatt::readtm(), trfel_init(), xfdetect_sect(), XFILE(), xfopen(), xfprintf(), and xfscanf().
long line |
actual line
Definition at line 48 of file xfile.h.
Referenced by check_feof_eos(), check_maxlnsize(), checkenumerr(), checkeos(), checkfeof(), checkscanferr(), cut_str_sec(), getkwd_sect(), input_elem_crsec(), input_elem_crsect(), input_elem_edgebc(), input_elem_eigstr(), input_elem_eltimefunc(), input_elem_eltimefunct(), input_elem_lcs(), input_elem_load(), input_elem_loadedge(), input_elem_loadsurf(), input_elem_loadvol(), input_elem_mat(), input_elem_matt(), input_elem_sourcet(), input_elem_surfbc(), input_elem_type(), input_elem_typet(), input_elem_vertbc(), input_lc(), input_nod_bocon(), input_nod_bocont(), input_nod_coupl_dofs(), input_nod_coupl_dofst(), input_nod_crsec(), input_nod_crsect(), input_nod_dof_tfunc(), input_nod_dof_tfunct(), input_nod_initcond(), input_nod_initcondt(), input_nod_lcs(), input_nod_load(), input_nod_ndof(), input_nod_sourcet(), input_nod_springs(), input_nod_tdload(), input_nod_temper(), proc_new_ln_fmt(), matrt::read(), csect::read(), matr::read(), csec::read(), gtopology::read_gf(), read_inicd_file(), skip_space(), xf_resetsec(), XFILE(), xfopen(), and xfscanf().
long lnfpos |
actual position of actual line beginning in file
Definition at line 50 of file xfile.h.
Referenced by getgkwid(), getkwd_sect(), proc_new_ln_fmt(), skip_space(), xf_resetsec(), xfdetect_sect(), XFILE(), xfopen(), and xfscanf().
char* lnpostf |
postfix string of line end (for XFILE output)
Definition at line 69 of file xfile.h.
Referenced by proc_new_ln_fmt(), and XFILE().
long lnpostfl |
char* lnpref |
prefix string of line beginning (for XFILE output)
Definition at line 68 of file xfile.h.
Referenced by proc_new_ln_fmt(), and XFILE().
char* lnstr |
line buffer where the actual file line is stored
Definition at line 52 of file xfile.h.
Referenced by getkwd_sect(), set_maxlnsize(), skipline(), xf_resetsec(), xfdetect_sect(), XFILE(), xfscanf(), and ~XFILE().
long maxlnover |
long maxlnsize [private] |
max line size
Definition at line 74 of file xfile.h.
Referenced by give_maxlnsize(), set_maxlnsize(), and XFILE().
long num_sec |
number of detected sections
Definition at line 65 of file xfile.h.
Referenced by getkwd_sect(), xf_resetsec(), xf_setsec(), xfdetect_sect(), XFILE(), and xfopen().
array with descriptions of detected sections
Definition at line 66 of file xfile.h.
Referenced by xf_setsec(), xfdetect_sect(), XFILE(), xfopen(), and ~XFILE().
int warning |
flag which handles warning (0=no warning/1=print warning/2=treat warning as an error)
Definition at line 55 of file xfile.h.
Referenced by check_maxlnsize(), checkenumerr(), checkscanferr(), import_T3d(), input(), input_crs(), input_crst(), input_materials(), input_materialst(), inputt(), main(), mefel_init(), metr_init(), pmefel_init(), pmetr_init(), ptrfel_init(), loadcaset::read(), seismtool::read(), read_inicd_file(), trfel_init(), XFILE(), and xfopen().