User guide
Ethernet Developers Guide
68
840 USE 115 00 Version 1.0
9. CReadDlg.
The CReadDl
g
class is the dialo
g
class for determinin
g
the
re
g
isters to read. It is derived from the CDialo
g
class. The declaration is in the
readdl
g
.h file, and the implementation is in the readdl
g
.cpp file. Both of these
files were
g
enerated b
y
The Visual C++ class wizard.
10. CWriteDlg.
The CWriteDl
g
class is the dialo
g
class for determinin
g
the
re
g
isters to write and the write data. It is derived from the Cdialo
g
class. The
declaration is in the writedl
g
.h and the implementation is in the writedl
g
.cpp file.
Both of these files were
g
enerated b
y
The Visual C++ class wizard.
11. CAboutDlg.
The CAboutDl
g
class is the dialo
g
class for
about
. Both the
declaration and its implementation are in the sam_app.cpp file.
B.6 The CSample_doc Class
The CSample_doc
(
the document class
)
contains the user data used b
y
the
CSample_View class. The user data consists of the remote node’s IP address, the
transaction t
y
pe and its associated values. The different transaction t
y
pes are read
re
g
ister, write re
g
ister, clear statistics, and
g
et statistics. In addition to the
transaction t
y
pe and the associated values, the document class also contains the
poll interval.
A user modifies the user data via a menu or tool bar. The CSample_doc processes
the menu or tool bar window command messa
g
e b
y
invokin
g
the correspondin
g
dialo
g
. The state of the various menu items and tool bar buttons depends on the
connection state between the application and the remote node. The
CSample_View class maintains the connection state, and hence sets the state of
the menu items and tool bar buttons.