Changeset 21916 for trunk/tools/common/kFile.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/tools/common/kFile.cpp
r8003 r21916 19 19 * Header Files * 20 20 *******************************************************************************/ 21 #if defined (__EMX__) && !defined (USE_OS2_TOOLKIT_HEADERS) 22 #define __OS2DEF__ 23 #endif 21 24 #include <os2.h> 22 25 … … 45 48 * @remark 46 49 */ 47 KBOOL kFile::refreshFileStatus() 50 KBOOL kFile::refreshFileStatus() throw (kError) 48 51 { 49 52 if (fStdDev) … … 68 71 * @returns Success indicator. 69 72 */ 70 KBOOL kFile::position() 73 KBOOL kFile::position() throw (kError) 71 74 { 72 75 /* … … 254 257 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no) 255 258 */ 256 kFile::kFile(const char *pszFilename, KBOOL fReadOnly/*=TRUE*/) 259 kFile::kFile(const char *pszFilename, KBOOL fReadOnly/*=TRUE*/) throw (kError) 257 260 : fReadOnly(fReadOnly), 258 261 fStatusClean(FALSE), … … 332 335 * @param cbBuffer Amount of bytes to read. 333 336 */ 334 int kFile::read(void *pvBuffer, long cbBuffer) 337 int kFile::read(void *pvBuffer, long cbBuffer) throw (kError) 335 338 { 336 339 ULONG cbRead; … … 427 430 * @param off Absolute file offset. 428 431 */ 429 int kFile::readAt(void *pvBuffer, long cbBuffer, long off) 432 int kFile::readAt(void *pvBuffer, long cbBuffer, long off) throw (kError) 430 433 { 431 434 if (set(off)) … … 477 480 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no) 478 481 */ 479 int kFile::readln(char *pszBuffer, long cchBuffer) throw(kError)482 int kFile::readln(char *pszBuffer, long cchBuffer) 480 483 { 481 484 long cbRead; … … 558 561 * @param cbBuffer Amount of bytes to write. 559 562 */ 560 int kFile::write(const void *pv, long cb) 563 int kFile::write(const void *pv, long cb) throw (kError) 561 564 { 562 565 if (fReadOnly) … … 678 681 * @param off Absolute file offset. 679 682 */ 680 int kFile::writeAt(const void *pvBuffer, long cbBuffer, long off) 683 int kFile::writeAt(const void *pvBuffer, long cbBuffer, long off) throw (kError) 681 684 { 682 685 if (set(off)) … … 788 791 * @param off Relative reposition. 789 792 */ 790 int kFile::move(long off) 793 int kFile::move(long off) throw (kError) 791 794 { 792 795 if ((off + offVirtual) & 0x80000000UL) /* above 2GB or negative */ … … 814 817 * @param off New file position. 815 818 */ 816 int kFile::set(long off) 819 int kFile::set(long off) throw (kError) 817 820 { 818 821 if (off < 0) … … 839 842 * @remark Will only throw error if refreshFileStatus failes. 840 843 */ 841 int kFile::end() 844 int kFile::end() throw (kError) 842 845 { 843 846 if (!refreshFileStatus()) … … 872 875 * @remark Will only throw error if refreshFileStatus failes. 873 876 */ 874 long kFile::getSize() 877 long kFile::getSize() throw (kError) 875 878 { 876 879 if (!refreshFileStatus()) … … 886 889 * @remark Will only throw error if refreshFileStatus failes. 887 890 */ 888 long kFile::getPos() const 891 long kFile::getPos() const throw (kError) 889 892 { 890 893 return offVirtual; … … 898 901 * @remark Will only throw error if refreshFileStatus failes. 899 902 */ 900 KBOOL kFile::isEOF() 903 KBOOL kFile::isEOF() throw (kError) 901 904 { 902 905 #if 0 … … 954 957 * @remark May throw errors. 955 958 */ 956 void *kFile::mapFile(const char *pszFilename) 959 void *kFile::mapFile(const char *pszFilename) throw (kError) 957 960 { 958 961 kFile file(pszFilename); … … 968 971 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no) 969 972 */ 970 void kFile::mapFree(void *pvFileMapping) 973 void kFile::mapFree(void *pvFileMapping) throw (kError) 971 974 { 972 975 if (pvFileMapping)
Note:
See TracChangeset
for help on using the changeset viewer.