CDR_File_Reset_Functor Class Reference
#include <test_fdm.h>
Collaboration diagram for CDR_File_Reset_Functor:

Public Member Functions | |
| CDR_File_Reset_Functor (const std::string &fname, bool verbosity=false) | |
| virtual bool | operator() (FDM_Stream &out, FDM_Stream &in) |
Public Attributes | |
| std::string | filename |
| bool | verbose |
Detailed Description
Definition at line 108 of file test_fdm.h.
Constructor & Destructor Documentation
| CDR_File_Reset_Functor::CDR_File_Reset_Functor | ( | const std::string & | fname, | |
| bool | verbosity = false | |||
| ) | [inline] |
Member Function Documentation
| virtual bool CDR_File_Reset_Functor::operator() | ( | FDM_Stream & | out, | |
| FDM_Stream & | in | |||
| ) | [inline, virtual] |
Definition at line 112 of file test_fdm.h.
References filename, and FDM_CDR_File::open().
00112 { 00113 FDM_CDR_File &cdr_out = dynamic_cast<FDM_CDR_File &>(out); 00114 FDM_CDR_File &cdr_in = dynamic_cast<FDM_CDR_File &>(in); 00115 00116 // Close the input file 00117 cdr_in.close(); 00118 00119 // Open file for output, truncating the contents 00120 cdr_out.open(filename); 00121 return(true); 00122 }
Here is the call graph for this function:

Member Data Documentation
| std::string CDR_File_Reset_Functor::filename |
Definition at line 124 of file test_fdm.h.
The documentation for this class was generated from the following file: