-
Today started working on Symbian OS Fundamental Types.
"The Symbian OS Fundamental types and how they are related to C++ built-ins."
Please refer to:
a. The Fundamentals of Symbian OS Curriculam v2.1 Section 4.
b. Symbian OS Basics Workbook v3.1 Page 85 ( Acroread page 90 - onwards. )
The Symbian OS has FIVE fundamental BASIC types:
1. Integers
2. Text
3. Boolean
4. Float
5. TAny
6. enums
Symbian Class naming convention defines four fundamental types of classes:
1. T Classes (declared on stack)
2. C Classes (declared dynamically on heap)
3. R Classes (access shared resources)
4. M Classes (define an interface)
Variables:
1. Class Member variable names start with 'i'
2. Arguments start with 'a'
3. Local variables start with 'lower letter'
4. Constants start with 'K'
5. Avoid globals, but start with 'capital letter' when used.
Functions:
1. Name indicates what they do
2. 'Set' and 'Get|NONE' prefix for data access function names
3. If the function deletes an object, suffix "D"
4. If the function "Leaves", suffix "L"
5. If the function "places an item in cleanup stack", suffix "C"
Casting:
Native C++ operators are used for casting.
That's the fundamentals of fundamental Symbian OS Types.
I wish I could dig them deeper, but tomorrow.
Tomorrow: I want to start with Carbide.C++.
-
Monday, May 11, 2009
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment