Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fieldIO_None.cpp
Go to the documentation of this file.
1 
14 #include "fieldIO_None.h"
15 
16 #include "bridgeIO.h"
17 using Bridge::vout;
18 
19 const std::string FieldIO_None::class_name = "FieldIO_None";
20 
21 //====================================================================
22 void FieldIO_None::read_file(Field *v, const std::string filename)
23 {
24  if (v == 0) {
25  vout.crucial(m_vl, "%s: field empty.\n", __func__);
26  return;
27  }
28 
29  vout.detailed(m_vl, "read successful: nothing performed.\n");
30 }
31 
32 
33 //====================================================================
34 void FieldIO_None::write_file(Field *v, const std::string filename)
35 {
36  if (v == 0) {
37  vout.crucial(m_vl, "%s: field empty.\n", __func__);
38  return;
39  }
40 
41  vout.detailed(m_vl, "write successful: data discarded.\n");
42 }
43 
44 
45 //====================================================================
46 //============================================================END=====
BridgeIO vout
Definition: bridgeIO.cpp:503
void detailed(const char *format,...)
Definition: bridgeIO.cpp:216
Container of Field-type object.
Definition: field.h:45
void write_file(Field *v, const std::string filename)
write data to file.
void read_file(Field *v, const std::string filename)
read data from file.
static const std::string class_name
Definition: fieldIO_None.h:35
void crucial(const char *format,...)
Definition: bridgeIO.cpp:178
Bridge::VerboseLevel m_vl
Definition: fieldIO.h:64