removed throw specifications

This commit is contained in:
Jeff Hill
2003-02-12 18:51:35 +00:00
parent fb8aa21cc8
commit 8e5aa40895
23 changed files with 177 additions and 250 deletions

View File

@@ -81,20 +81,18 @@ const char cacNillBytes [] =
};
comQueSend::comQueSend ( wireSendAdapter & wireIn,
comBufMemoryManager & comBufMemMgrIn ) epicsThrows (()) :
comBufMemoryManager & comBufMemMgrIn ):
comBufMemMgr ( comBufMemMgrIn ), wire ( wireIn ),
nBytesPending ( 0u )
{
}
comQueSend::~comQueSend ()
epicsThrows (())
comQueSend::~comQueSend ()
{
this->clear ();
}
void comQueSend::clear ()
epicsThrows (())
{
comBuf *pBuf;
@@ -108,7 +106,6 @@ void comQueSend::clear ()
}
void comQueSend::clearUncommitted ()
epicsThrows (())
{
while ( this->pFirstUncommited.valid() ) {
tsDLIter < comBuf > next = this->pFirstUncommited;
@@ -124,37 +121,31 @@ void comQueSend::clearUncommitted ()
}
void comQueSend::copy_dbr_string ( const void *pValue, unsigned nElem )
epicsThrows (( std::bad_alloc ))
{
this->push ( static_cast <const dbr_string_t *> ( pValue ), nElem );
}
void comQueSend::copy_dbr_short ( const void *pValue, unsigned nElem )
epicsThrows (( std::bad_alloc ))
{
this->push ( static_cast <const dbr_short_t *> ( pValue ), nElem );
}
void comQueSend::copy_dbr_float ( const void *pValue, unsigned nElem )
epicsThrows (( std::bad_alloc ))
{
this->push ( static_cast <const dbr_float_t *> ( pValue ), nElem );
}
void comQueSend::copy_dbr_char ( const void *pValue, unsigned nElem )
epicsThrows (( std::bad_alloc ))
{
this->push ( static_cast <const dbr_char_t *> ( pValue ), nElem );
}
void comQueSend::copy_dbr_long ( const void *pValue, unsigned nElem )
epicsThrows (( std::bad_alloc ))
{
this->push ( static_cast <const dbr_long_t *> ( pValue ), nElem );
}
void comQueSend::copy_dbr_double ( const void *pValue, unsigned nElem )
epicsThrows (( std::bad_alloc ))
{
this->push ( static_cast <const dbr_double_t *> ( pValue ), nElem );
}
@@ -202,7 +193,6 @@ const comQueSend::copyFunc_t comQueSend::dbrCopyVector [39] = {
};
comBuf * comQueSend::popNextComBufToSend ()
epicsThrows (( ))
{
comBuf *pBuf = this->bufs.get ();
if ( pBuf ) {
@@ -226,7 +216,6 @@ void comQueSend::insertRequestHeader (
ca_uint16_t request, ca_uint32_t payloadSize,
ca_uint16_t dataType, ca_uint32_t nElem, ca_uint32_t cid,
ca_uint32_t requestDependent, bool v49Ok )
epicsThrows (( cacChannel::outOfBounds, std::bad_alloc ))
{
this->beginMsg ();
if ( payloadSize < 0xffff && nElem < 0xffff ) {
@@ -256,8 +245,6 @@ void comQueSend::insertRequestWithPayLoad (
ca_uint16_t request, unsigned dataType, ca_uint32_t nElem,
ca_uint32_t cid, ca_uint32_t requestDependent, const void * pPayload,
bool v49Ok )
epicsThrows (( cacChannel::outOfBounds,
cacChannel::badType, std::bad_alloc ))
{
if ( ! this->dbr_type_ok ( dataType ) ) {
throw cacChannel::badType();
@@ -303,7 +290,6 @@ void comQueSend::insertRequestWithPayLoad (
}
void comQueSend::commitMsg ()
epicsThrows (())
{
while ( this->pFirstUncommited.valid() ) {
this->nBytesPending += this->pFirstUncommited->uncommittedBytes ();