
Ethernet Developers Guide
68
840 USE 115 00 Version 1.0
9. CReadDlg.
The CReadDl
class is the dialo
class for determinin
the
re
isters to read. It is derived from the CDialo
class. The declaration is in the
readdl
.h file, and the implementation is in the readdl
.cpp file. Both of these
files were
enerated b
The Visual C++ class wizard.
10. CWriteDlg.
The CWriteDl
class is the dialo
class for determinin
the
re
isters to write and the write data. It is derived from the Cdialo
class. The
declaration is in the writedl
.h and the implementation is in the writedl
.cpp file.
Both of these files were
enerated b
The Visual C++ class wizard.
11. CAboutDlg.
The CAboutDl
class is the dialo
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
the
CSample_View class. The user data consists of the remote node’s IP address, the
transaction t
pe and its associated values. The different transaction t
pes are read
re
ister, write re
ister, clear statistics, and
et statistics. In addition to the
transaction t
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
e b
invokin
the correspondin
dialo
. 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.
Komentarze do niniejszej Instrukcji