Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ChaNFSSD mbed BMP085 SHT2x
libT/portable/tversion.h@0:6089ae824f06, 2011-12-26 (annotated)
- Committer:
- tosihisa
- Date:
- Mon Dec 26 15:58:32 2011 +0000
- Revision:
- 0:6089ae824f06
- Child:
- 1:83960ee4d9a2
1st Release
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| tosihisa | 0:6089ae824f06 | 1 | |
| tosihisa | 0:6089ae824f06 | 2 | #ifndef __TVERSION_H |
| tosihisa | 0:6089ae824f06 | 3 | #define __TVERSION_H |
| tosihisa | 0:6089ae824f06 | 4 | |
| tosihisa | 0:6089ae824f06 | 5 | namespace libT { |
| tosihisa | 0:6089ae824f06 | 6 | |
| tosihisa | 0:6089ae824f06 | 7 | class tVersion { |
| tosihisa | 0:6089ae824f06 | 8 | public: |
| tosihisa | 0:6089ae824f06 | 9 | tVersion(unsigned long _major,unsigned long _minor) : major(_major),minor(minor) {} |
| tosihisa | 0:6089ae824f06 | 10 | |
| tosihisa | 0:6089ae824f06 | 11 | unsigned long getMajorVersion(void) const { return major; } |
| tosihisa | 0:6089ae824f06 | 12 | unsigned long getMinorVersion(void) const { return minor; } |
| tosihisa | 0:6089ae824f06 | 13 | |
| tosihisa | 0:6089ae824f06 | 14 | private: |
| tosihisa | 0:6089ae824f06 | 15 | unsigned long major; |
| tosihisa | 0:6089ae824f06 | 16 | unsigned long minor; |
| tosihisa | 0:6089ae824f06 | 17 | }; |
| tosihisa | 0:6089ae824f06 | 18 | |
| tosihisa | 0:6089ae824f06 | 19 | }; |
| tosihisa | 0:6089ae824f06 | 20 | |
| tosihisa | 0:6089ae824f06 | 21 | #endif /* __TVERSION_H */ |