tailieunhanh - Symbian OS C++ for Mobile Phones VOL 1 PHẦN 2

Khi yêu cầu tiết kiệm được thực hiện, không có công việc khác về dự án hoạt động sẽ diễn ra cho đến khi tiết kiệm là một trong hai hoàn thành hoặc bị bỏ rơi. Chúng tôi sử dụng nonmodal hạn để mô tả một điển hình của giao diện đồ họaNếu người dùng làm cho một sai lầm mà có thể bị bắt ngay lập tức, nó là thích hợp | If the cardinality is not 1-to-1 then you need to indicate its value with UML adornments. You usually write the number of objects intended on one end of the UML connector. Common values are as follows the object is optional - perhaps a pointer is used to refer to it 1 .n or simply n an arbitrary number of objects is intended - a list array or other collection class may be used to contain them 10 exactly 10 objects are intended. For instance you can read Figure as The engine s iMyFleet fleet always has 10 ships. The engine s iOppFleet fleet may have anything from 0 to 10 ships. Figure Summy In this chapter we ve looked at the features of C that Symbian OS uses those it avoids and those it augments. We ve also seen the coding standards that are used in Symbian OS. Specifically we ve seen the following The use of Symbian OS fundamental types to guarantee consistent behavior between compilers and platforms. Naming conventions - the core ones help with cleanup. T C and R distinguish between different cleanup requirements for classes i refers to member variables and L to leaving functions that may fail for reasons beyond the control of the programmer. M prefixes interfaces consisting of pure virtual functions . Good design of function prototypes - how to code input and output parameters and suggested use of references and pointers in Symbian OS. The difference between library and framework DLLs - the former provide functions that you call the latter provide functions for you to implement that the framework will call. Exporting nonvirtual noninline functions using the IMPORT_C and EXPORT_C macros. How to handle virtual functions. Symbian OS use of templates and the thin template pattern to keep code size to a minimum. The four relationships between classes and how to represent them in UML. The use of mixins to provide interfaces in the only use of multiple inheritance in Symbian OS. Chapter 4 A Simple Graphical Application Overview In Chapter 1 we .

TỪ KHÓA LIÊN QUAN