Electromagnetic Template Library (EMTL)
Loading...
Searching...
No Matches
emPoint2File Class Reference

This class is used while printing results to text files Results correspond to set of argument (positions in space / time) This class specifies file name for each argument, and checks if results for some particular argument should be printed. More...

#include <analyzer.h>

Inheritance diagram for emPoint2File:
Collaboration diagram for emPoint2File:

Public Member Functions

void SetOutputMode (int four, int arg=argAll)
 Sets the output representation.
 
template<class iter_t >
int GetFileName (std::string &fname, const emRecArg &r, iter_t &it)
 Gets filename or -1 if this entry is to be skipped returns the number of separators '
' to print

 
template<class iter_t >
int CheckIterator (iter_t &it)
 returns 1 if this iterator should be printed, or -1 if it should be skipped
 
virtual int CheckEntry (const emRecArg &r)
 returns 1 if this argument should be printed, or -1 if it should be skipped
 
virtual int process (std::vector< vec_type > &vout, const emRecArg &r, int refnum=0)
 records to vout list of argument values to print
 

Protected Attributes

std::string pref
 file name prefix
 
std::string fv
 printf template to put time /space iterator at the name of the file
 
Vector_3 v
 current position
 
valtype t
 current time
 
std::string ch [3]
 name of three space arguments (x, y, z in rectangular system)
 
int argflags
 bit flag which specifies which arguments will be printed
 
int single_file
 all in one file
 

Detailed Description

This class is used while printing results to text files Results correspond to set of argument (positions in space / time) This class specifies file name for each argument, and checks if results for some particular argument should be printed.


Member Function Documentation

◆ SetOutputMode()

void emPoint2File::SetOutputMode ( int  four,
int  arg = argAll 
)

Sets the output representation.

Bit flag four: 0x1 - frequency instead of time, 0x2 - k-vector insted of x-vector arg corresponds to which arguments should be printed (x, y, z, t).


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