You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ab...@locus.apache.org on 2000/03/02 21:42:43 UTC
cvs commit: xml-xerces/c/src/util/Platforms/UnixWare UnixWarePlatformUtils.cpp
abagchi 00/03/02 12:42:42
Modified: c/src/util/Platforms/HPUX HPPlatformUtils.cpp
c/src/util/Platforms/IRIX IRIXPlatformUtils.cpp
c/src/util/Platforms/Linux LinuxPlatformUtils.cpp
c/src/util/Platforms/Solaris SolarisPlatformUtils.cpp
c/src/util/Platforms/UnixWare UnixWarePlatformUtils.cpp
Log:
Fixed typo in XMLExcepts
Revision Changes Path
1.9 +22 -17 xml-xerces/c/src/util/Platforms/HPUX/HPPlatformUtils.cpp
Index: HPPlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/HPUX/HPPlatformUtils.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- HPPlatformUtils.cpp 2000/03/02 19:55:21 1.8
+++ HPPlatformUtils.cpp 2000/03/02 20:42:40 1.9
@@ -56,6 +56,9 @@
/*
* $Log: HPPlatformUtils.cpp,v $
+ * Revision 1.9 2000/03/02 20:42:40 abagchi
+ * Fixed typo in XMLExcepts
+ *
* Revision 1.8 2000/03/02 19:55:21 roddey
* This checkin includes many changes done while waiting for the
* 1.1.0 code to be finished. I can't list them all here, but a list is
@@ -152,7 +155,7 @@
if (fputs(toWrite, stream) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdErrWriteFailure);
+ XMLExcepts::Strm_StdErrWriteFailure);
}
}
@@ -163,7 +166,7 @@
if (fputs(tmpVal, stderr) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdErrWriteFailure);
+ XMLExcepts::Strm_StdErrWriteFailure);
}
}
@@ -174,7 +177,7 @@
if (fputs(tmpVal, stdout) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdOutWriteFailure);
+ XMLExcepts::Strm_StdOutWriteFailure);
}
}
@@ -297,7 +300,7 @@
long curPos = ftell((FILE*) theFile);
if (curPos == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetCurPos);
+ XMLExcepts::File_CouldNotGetCurPos);
return (unsigned int) curPos;
}
@@ -307,7 +310,7 @@
{
if (fclose((FILE*) theFile))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotCloseFile);
+ XMLExcepts::File_CouldNotCloseFile);
}
@@ -318,25 +321,25 @@
if (curPos == -1)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetCurPos);
+ XMLExcepts::File_CouldNotGetCurPos);
}
// Seek to the end and save that value for return
if (fseek((FILE*) theFile, 0, SEEK_END))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToEnd);
+ XMLExcepts::File_CouldNotSeekToEnd);
}
long int retVal = ftell((FILE*) theFile);
if (retVal == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetSize);
+ XMLExcepts::File_CouldNotGetSize);
// And put the pointer back
if (fseek((FILE*) theFile, curPos, SEEK_SET))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToPos);
+ XMLExcepts::File_CouldNotSeekToPos);
return (unsigned int) retVal;
}
@@ -372,7 +375,7 @@
if (ferror((FILE*)theFile))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotReadFromFile);
+ XMLExcepts::File_CouldNotReadFromFile);
}
return (unsigned int) noOfItemsRead;
@@ -384,7 +387,7 @@
// Seek to the start of the file
if (fseek((FILE*) theFile, 0, SEEK_SET))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotResetFile);
+ XMLExcepts::File_CouldNotResetFile);
}
@@ -427,7 +430,7 @@
if (!retPath)
{
- ThrowXML(XMLPlatformUtilsException, XMLExcept::File_CouldNotGetBasePathName);
+ ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotGetBasePathName);
}
return XMLString::transcode(absPath);
}
@@ -577,7 +580,7 @@
if (pthread_mutex_init(mutex, *attr))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotCreate);
+ XMLExcepts::Mutex_CouldNotCreate);
}
pthread_mutexattr_delete(attr);
#else
@@ -586,7 +589,7 @@
if (pthread_mutex_init(mutex, attr))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotCreate);
+ XMLExcepts::Mutex_CouldNotCreate);
}
pthread_mutexattr_destroy(attr);
#endif
@@ -602,7 +605,7 @@
{
if (pthread_mutex_destroy(mutex))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotDestroy);
+ XMLExcepts::Mutex_CouldNotDestroy);
delete mutex;
}
}
@@ -614,7 +617,7 @@
if (pthread_mutex_lock((pthread_mutex_t *) mtxHandle))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotLock);
+ XMLExcepts::Mutex_CouldNotLock);
}
}
}
@@ -626,7 +629,7 @@
if (pthread_mutex_unlock((pthread_mutex_t *) mtxHandle))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotUnlock);
+ XMLExcepts::Mutex_CouldNotUnlock);
}
}
}
1.7 +21 -16 xml-xerces/c/src/util/Platforms/IRIX/IRIXPlatformUtils.cpp
Index: IRIXPlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/IRIX/IRIXPlatformUtils.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- IRIXPlatformUtils.cpp 2000/03/02 19:55:22 1.6
+++ IRIXPlatformUtils.cpp 2000/03/02 20:42:40 1.7
@@ -56,6 +56,9 @@
/*
* $Log: IRIXPlatformUtils.cpp,v $
+ * Revision 1.7 2000/03/02 20:42:40 abagchi
+ * Fixed typo in XMLExcepts
+ *
* Revision 1.6 2000/03/02 19:55:22 roddey
* This checkin includes many changes done while waiting for the
* 1.1.0 code to be finished. I can't list them all here, but a list is
@@ -135,7 +138,7 @@
if (fputs(toWrite, stream) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdErrWriteFailure);
+ XMLExcepts::Strm_StdErrWriteFailure);
}
}
@@ -146,7 +149,7 @@
if (fputs(tmpVal, stderr) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdErrWriteFailure);
+ XMLExcepts::Strm_StdErrWriteFailure);
}
}
@@ -157,7 +160,7 @@
if (fputs(tmpVal, stdout) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdOutWriteFailure);
+ XMLExcepts::Strm_StdOutWriteFailure);
}
}
@@ -407,7 +410,7 @@
int curPos = ftell( (FILE*)theFile);
if (curPos == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetSize);
+ XMLExcepts::File_CouldNotGetSize);
return (unsigned int)curPos;
}
@@ -416,7 +419,7 @@
{
if (fclose((FILE*)theFile))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotCloseFile);
+ XMLExcepts::File_CouldNotCloseFile);
}
unsigned int XMLPlatformUtils::fileSize(FileHandle theFile)
@@ -425,23 +428,23 @@
long int curPos = ftell((FILE*) theFile);
if (curPos == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetCurPos);
+ XMLExcepts::File_CouldNotGetCurPos);
// Seek to the end and save that value for return
if (fseek((FILE*) theFile, 0, SEEK_END))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToEnd);
+ XMLExcepts::File_CouldNotSeekToEnd);
long int retVal = ftell((FILE*)theFile);
if (retVal == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToEnd);
+ XMLExcepts::File_CouldNotSeekToEnd);
// And put the pointer back
if (fseek( (FILE*)theFile, curPos, SEEK_SET) )
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToPos);
+ XMLExcepts::File_CouldNotSeekToPos);
return (unsigned int)retVal;
}
@@ -475,7 +478,7 @@
if(ferror((FILE*)theFile))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotReadFromFile);
+ XMLExcepts::File_CouldNotReadFromFile);
}
return (unsigned int)noOfItemsRead;
@@ -487,7 +490,7 @@
// Seek to the start of the file
if (fseek((FILE*)theFile, 0, SEEK_SET))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotResetFile);
+ XMLExcepts::File_CouldNotResetFile);
}
@@ -521,7 +524,7 @@
if (!tmpPath)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetBasePathName);
+ XMLExcepts::File_CouldNotGetBasePathName);
}
char* newXMLString = new char [strlen(tmpPath) +2];
@@ -568,7 +571,7 @@
if (pthread_mutex_init(mutex, attr))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotCreate);
+ XMLExcepts::Mutex_CouldNotCreate);
}
pthread_mutexattr_destroy(attr);
delete attr;
@@ -584,7 +587,7 @@
if (pthread_mutex_destroy((pthread_mutex_t*) mtxHandle))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotDestroy);
+ XMLExcepts::Mutex_CouldNotDestroy);
}
delete mtxHandle;
}
@@ -598,7 +601,7 @@
if (pthread_mutex_lock((pthread_mutex_t*) mtxHandle))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotLock);
+ XMLExcepts::Mutex_CouldNotLock);
}
}
}
@@ -611,7 +614,7 @@
if (pthread_mutex_unlock((pthread_mutex_t*) mtxHandle))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotUnlock);
+ XMLExcepts::Mutex_CouldNotUnlock);
}
}
}
1.12 +21 -16 xml-xerces/c/src/util/Platforms/Linux/LinuxPlatformUtils.cpp
Index: LinuxPlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/Linux/LinuxPlatformUtils.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- LinuxPlatformUtils.cpp 2000/03/02 19:55:24 1.11
+++ LinuxPlatformUtils.cpp 2000/03/02 20:42:41 1.12
@@ -56,6 +56,9 @@
/*
* $Log: LinuxPlatformUtils.cpp,v $
+ * Revision 1.12 2000/03/02 20:42:41 abagchi
+ * Fixed typo in XMLExcepts
+ *
* Revision 1.11 2000/03/02 19:55:24 roddey
* This checkin includes many changes done while waiting for the
* 1.1.0 code to be finished. I can't list them all here, but a list is
@@ -157,7 +160,7 @@
if (fputs(toWrite, stream) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdErrWriteFailure);
+ XMLExcepts::Strm_StdErrWriteFailure);
}
}
@@ -168,7 +171,7 @@
if (fputs(tmpVal, stderr) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdErrWriteFailure);
+ XMLExcepts::Strm_StdErrWriteFailure);
}
}
@@ -179,7 +182,7 @@
if (fputs(tmpVal, stdout) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdOutWriteFailure);
+ XMLExcepts::Strm_StdOutWriteFailure);
}
}
@@ -401,7 +404,7 @@
int curPos = ftell( (FILE*)theFile);
if (curPos == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetSize);
+ XMLExcepts::File_CouldNotGetSize);
return (unsigned int)curPos;
}
@@ -410,7 +413,7 @@
{
if (fclose((FILE*)theFile))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotCloseFile);
+ XMLExcepts::File_CouldNotCloseFile);
}
unsigned int XMLPlatformUtils::fileSize(FileHandle theFile)
@@ -419,23 +422,23 @@
long int curPos = ftell((FILE*) theFile);
if (curPos == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetCurPos);
+ XMLExcepts::File_CouldNotGetCurPos);
// Seek to the end and save that value for return
if (fseek((FILE*) theFile, 0, SEEK_END))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToEnd);
+ XMLExcepts::File_CouldNotSeekToEnd);
long int retVal = ftell((FILE*)theFile);
if (retVal == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToEnd);
+ XMLExcepts::File_CouldNotSeekToEnd);
// And put the pointer back
if (fseek( (FILE*)theFile, curPos, SEEK_SET) )
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToPos);
+ XMLExcepts::File_CouldNotSeekToPos);
return (unsigned int)retVal;
}
@@ -478,7 +481,7 @@
if(ferror((FILE*)theFile))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotReadFromFile);
+ XMLExcepts::File_CouldNotReadFromFile);
}
return (unsigned int)noOfItemsRead;
@@ -490,7 +493,7 @@
// Seek to the start of the file
if (fseek((FILE*)theFile, 0, SEEK_SET))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotResetFile);
+ XMLExcepts::File_CouldNotResetFile);
}
@@ -525,7 +528,7 @@
if (!retPath)
{
- ThrowXML(XMLPlatformUtilsException, XMLExcept::File_CouldNotGetBasePathName);
+ ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotGetBasePathName);
}
return XMLString::transcode(absPath);
}
@@ -564,7 +567,7 @@
if (pthread_mutex_init(mutex, attr))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotCreate);
+ XMLExcepts::Mutex_CouldNotCreate);
}
pthread_mutexattr_destroy(attr);
delete attr;
@@ -579,7 +582,7 @@
if (pthread_mutex_destroy((pthread_mutex_t*) mtxHandle))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotDestroy);
+ XMLExcepts::Mutex_CouldNotDestroy);
}
delete mtxHandle;
}
@@ -593,7 +596,7 @@
if (pthread_mutex_lock((pthread_mutex_t*) mtxHandle))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotLock);
+ XMLExcepts::Mutex_CouldNotLock);
}
}
}
@@ -606,7 +609,7 @@
if (pthread_mutex_unlock((pthread_mutex_t*) mtxHandle))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotUnlock);
+ XMLExcepts::Mutex_CouldNotUnlock);
}
}
}
1.13 +21 -16 xml-xerces/c/src/util/Platforms/Solaris/SolarisPlatformUtils.cpp
Index: SolarisPlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/Solaris/SolarisPlatformUtils.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- SolarisPlatformUtils.cpp 2000/03/02 19:55:30 1.12
+++ SolarisPlatformUtils.cpp 2000/03/02 20:42:41 1.13
@@ -56,6 +56,9 @@
/*
* $Log: SolarisPlatformUtils.cpp,v $
+ * Revision 1.13 2000/03/02 20:42:41 abagchi
+ * Fixed typo in XMLExcepts
+ *
* Revision 1.12 2000/03/02 19:55:30 roddey
* This checkin includes many changes done while waiting for the
* 1.1.0 code to be finished. I can't list them all here, but a list is
@@ -150,7 +153,7 @@
if (fputs(toWrite, stream) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdErrWriteFailure);
+ XMLExcepts::Strm_StdErrWriteFailure);
}
}
@@ -161,7 +164,7 @@
if (fputs(tmpVal, stderr) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdErrWriteFailure);
+ XMLExcepts::Strm_StdErrWriteFailure);
}
}
@@ -172,7 +175,7 @@
if (fputs(tmpVal, stdout) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdOutWriteFailure);
+ XMLExcepts::Strm_StdOutWriteFailure);
}
}
@@ -294,7 +297,7 @@
int curPos = ftell( (FILE*)theFile);
if (curPos == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetSize);
+ XMLExcepts::File_CouldNotGetSize);
return (unsigned int)curPos;
}
@@ -303,7 +306,7 @@
{
if (fclose((FILE*) theFile))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotCloseFile);
+ XMLExcepts::File_CouldNotCloseFile);
}
unsigned int XMLPlatformUtils::fileSize(FileHandle theFile)
@@ -312,22 +315,22 @@
long int curPos = ftell((FILE*) theFile);
if (curPos == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetCurPos);
+ XMLExcepts::File_CouldNotGetCurPos);
// Seek to the end and save that value for return
if (fseek( (FILE*) theFile, 0, SEEK_END) )
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToEnd);
+ XMLExcepts::File_CouldNotSeekToEnd);
long int retVal = ftell((FILE*) theFile);
if (retVal == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToEnd);
+ XMLExcepts::File_CouldNotSeekToEnd);
// And put the pointer back
if (fseek((FILE*) theFile, curPos, SEEK_SET))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToPos);
+ XMLExcepts::File_CouldNotSeekToPos);
return (unsigned int)retVal;
}
@@ -363,7 +366,7 @@
if(ferror((FILE*) theFile))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotReadFromFile);
+ XMLExcepts::File_CouldNotReadFromFile);
}
return (unsigned int) noOfItemsRead;
@@ -375,7 +378,7 @@
// Seek to the start of the file
if (fseek((FILE*) theFile, 0, SEEK_SET))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotResetFile);
+ XMLExcepts::File_CouldNotResetFile);
}
@@ -415,7 +418,7 @@
if (!retPath)
{
- ThrowXML(XMLPlatformUtilsException, XMLExcept::File_CouldNotGetBasePathName);
+ ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotGetBasePathName);
}
return XMLString::transcode(absPath);
}
@@ -564,14 +567,14 @@
RecursiveMutex() {
if (pthread_mutex_init(&mutex, NULL))
- ThrowXML(XMLPlatformUtilsException, XMLExcept::Mutex_CouldNotCreate);
+ ThrowXML(XMLPlatformUtilsException, XMLExcepts::Mutex_CouldNotCreate);
recursionCount = 0;
tid = 0;
};
~RecursiveMutex() {
if (pthread_mutex_destroy(&mutex))
- ThrowXML(XMLPlatformUtilsException, XMLExcept::Mutex_CouldNotDestroy);
+ ThrowXML(XMLPlatformUtilsException, XMLExcepts::Mutex_CouldNotDestroy);
};
void lock() {
@@ -581,7 +584,7 @@
return;
}
if (pthread_mutex_lock(&mutex) != 0)
- ThrowXML(XMLPlatformUtilsException, XMLExcept::Mutex_CouldNotLock);
+ ThrowXML(XMLPlatformUtilsException, XMLExcepts::Mutex_CouldNotLock);
tid = pthread_self();
recursionCount = 1;
};
@@ -592,7 +595,7 @@
return;
if (pthread_mutex_unlock(&mutex) != 0)
- ThrowXML(XMLPlatformUtilsException, XMLExcept::Mutex_CouldNotUnlock);
+ ThrowXML(XMLPlatformUtilsException, XMLExcepts::Mutex_CouldNotUnlock);
tid = 0;
};
};
1.5 +21 -16 xml-xerces/c/src/util/Platforms/UnixWare/UnixWarePlatformUtils.cpp
Index: UnixWarePlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/UnixWare/UnixWarePlatformUtils.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- UnixWarePlatformUtils.cpp 2000/03/02 19:55:33 1.4
+++ UnixWarePlatformUtils.cpp 2000/03/02 20:42:42 1.5
@@ -56,6 +56,9 @@
/*
* $Log: UnixWarePlatformUtils.cpp,v $
+ * Revision 1.5 2000/03/02 20:42:42 abagchi
+ * Fixed typo in XMLExcepts
+ *
* Revision 1.4 2000/03/02 19:55:33 roddey
* This checkin includes many changes done while waiting for the
* 1.1.0 code to be finished. I can't list them all here, but a list is
@@ -123,7 +126,7 @@
if (fputs(toWrite, stream) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdErrWriteFailure);
+ XMLExcepts::Strm_StdErrWriteFailure);
}
}
@@ -134,7 +137,7 @@
if (fputs(tmpVal, stderr) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdErrWriteFailure);
+ XMLExcepts::Strm_StdErrWriteFailure);
}
}
@@ -145,7 +148,7 @@
if (fputs(tmpVal, stdout) == EOF)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Strm_StdOutWriteFailure);
+ XMLExcepts::Strm_StdOutWriteFailure);
}
}
@@ -333,7 +336,7 @@
int curPos = ftell( (FILE*)theFile);
if (curPos == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetSize);
+ XMLExcepts::File_CouldNotGetSize);
return (unsigned int)curPos;
}
@@ -342,7 +345,7 @@
{
if (fclose((FILE*) theFile))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotCloseFile);
+ XMLExcepts::File_CouldNotCloseFile);
}
unsigned int XMLPlatformUtils::fileSize(FileHandle theFile)
@@ -351,22 +354,22 @@
long int curPos = ftell((FILE*) theFile);
if (curPos == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetCurPos);
+ XMLExcepts::File_CouldNotGetCurPos);
// Seek to the end and save that value for return
if (fseek( (FILE*) theFile, 0, SEEK_END) )
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToEnd);
+ XMLExcepts::File_CouldNotSeekToEnd);
long int retVal = ftell((FILE*) theFile);
if (retVal == -1)
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToEnd);
+ XMLExcepts::File_CouldNotSeekToEnd);
// And put the pointer back
if (fseek((FILE*) theFile, curPos, SEEK_SET))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotSeekToPos);
+ XMLExcepts::File_CouldNotSeekToPos);
return (unsigned int)retVal;
}
@@ -393,7 +396,7 @@
if(ferror((FILE*) theFile))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotReadFromFile);
+ XMLExcepts::File_CouldNotReadFromFile);
}
return (unsigned int) noOfItemsRead;
@@ -405,7 +408,7 @@
// Seek to the start of the file
if (fseek((FILE*) theFile, 0, SEEK_SET))
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotResetFile);
+ XMLExcepts::File_CouldNotResetFile);
}
@@ -442,7 +445,7 @@
if (!tmpPath)
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::File_CouldNotGetBasePathName);
+ XMLExcepts::File_CouldNotGetBasePathName);
}
char* newXMLString = new char [strlen(tmpPath) +2];
@@ -507,7 +510,7 @@
if (mutex_destroy( (mutex_t*)mtxHandle))
{
ThrowXML(XMLPlatformUtilsException,
- XMLExcept::Mutex_CouldNotDestroy);
+ XMLExcepts::Mutex_CouldNotDestroy);
}
if ((mutex_t*)mtxHandle)
delete mtxHandle;
@@ -519,7 +522,7 @@
return;
if (mutex_lock( (mutex_t*)mtxHandle))
{
- ThrowXML(XMLPlatformUtilsException, XMLExcept::Mutex_CouldNotLock);
+ ThrowXML(XMLPlatformUtilsException, XMLExcepts::Mutex_CouldNotLock);
}
}
@@ -529,7 +532,7 @@
if (mutex_init(mutex, NULL, NULL))
{
- ThrowXML(XMLPlatformUtilsException, XMLExcept::Mutex_CouldNotCreate);
+ ThrowXML(XMLPlatformUtilsException, XMLExcepts::Mutex_CouldNotCreate);
}
return (void*)(mutex);
}
@@ -539,7 +542,7 @@
return;
if (mutex_unlock( (mutex_t*)mtxHandle))
{
- ThrowXML(XMLPlatformUtilsException, XMLExcept::Mutex_CouldNotUnlock);
+ ThrowXML(XMLPlatformUtilsException, XMLExcepts::Mutex_CouldNotUnlock);
}
}