From 7c4ddfffcd1bada5cc3b54eb97aa8a91f1dcaeea Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Sat, 20 Oct 2001 00:36:46 +0000 Subject: [PATCH] use explicit templ instantiation --- src/cas/generic/caServerI.cc | 6 ++++++ src/cas/generic/casEventMask.cc | 3 +++ src/cas/generic/casPVI.cc | 24 ++++++++++++++++-------- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/cas/generic/caServerI.cc b/src/cas/generic/caServerI.cc index ed39e8fe4..a4b38ab5e 100644 --- a/src/cas/generic/caServerI.cc +++ b/src/cas/generic/caServerI.cc @@ -37,6 +37,12 @@ #include "server.h" #include "casCtxIL.h" // casCtx in line func +template class tsSLNode < casPVI >; +template class tsSLNode < casRes >; +template class resTable < casRes, chronIntId >; +template class resTable < casEventMaskEntry, stringId >; +template class chronIntIdResTable < casRes >; + // // the maximum beacon period if EPICS_CA_BEACON_PERIOD isnt available // diff --git a/src/cas/generic/casEventMask.cc b/src/cas/generic/casEventMask.cc index 8715c8df3..ed52200c6 100644 --- a/src/cas/generic/casEventMask.cc +++ b/src/cas/generic/casEventMask.cc @@ -34,6 +34,9 @@ #include "server.h" +template class tsSLNode < casEventMaskEntry >; +template class resTable < casEventMaskEntry, stringId >; + #ifdef TEST main () { diff --git a/src/cas/generic/casPVI.cc b/src/cas/generic/casPVI.cc index 49bf78ff0..ee550350d 100644 --- a/src/cas/generic/casPVI.cc +++ b/src/cas/generic/casPVI.cc @@ -219,7 +219,8 @@ void casPVI::updateEnumStringTable () // pTmp = new gddScalar (stringTableType); if (pTmp==NULL) { - errMessage (S_cas_noMemory, "unable to read application type \"enums\" string conversion table for enumerated PV"); + errMessage (S_cas_noMemory, +"unable to read application type \"enums\" string conversion table for enumerated PV"); return; } @@ -235,18 +236,22 @@ void casPVI::updateEnumStringTable () status = this->read (ctx, *pTmp); if (status == S_casApp_asyncCompletion || status == S_casApp_postponeAsyncIO) { pTmp->unreference (); - errMessage (status, " sorry, no support in server library for asynchronous completion of \"enums\" string conversion table for enumerated PV"); - errMessage (status, " please fetch \"enums\" string conversion table into cache during asychronous PV attach IO completion"); + errMessage (status, +" sorry, no support in server library for asynchronous completion of \"enums\" string conversion table for enumerated PV"); + errMessage (status, +" please fetch \"enums\" string conversion table into cache during asychronous PV attach IO completion"); return; } else if (status) { pTmp->unreference (); - errMessage (status, "unable to read application type \"enums\" string conversion table for enumerated PV"); + errMessage (status, +"unable to read application type \"enums\" string conversion table for enumerated PV"); return; } if (pTmp->isContainer()) { - errMessage (S_cas_badType, "application type \"enums\" string conversion table for enumerated PV was a container (expected vector of strings)"); + errMessage (S_cas_badType, +"application type \"enums\" string conversion table for enumerated PV was a container (expected vector of strings)"); pTmp->unreference (); return; } @@ -265,7 +270,8 @@ void casPVI::updateEnumStringTable () } } else { - errMessage (S_cas_badType, "application type \"enums\" string conversion table for enumerated PV isnt a string type?"); + errMessage (S_cas_badType, +"application type \"enums\" string conversion table for enumerated PV isnt a string type?"); } } else if (pTmp->dimension()==1) { @@ -297,11 +303,13 @@ void casPVI::updateEnumStringTable () } } else { - errMessage (S_cas_badType, "application type \"enums\" string conversion table for enumerated PV isnt a string type?"); + errMessage (S_cas_badType, +"application type \"enums\" string conversion table for enumerated PV isnt a string type?"); } } else { - errMessage (S_cas_badType, "application type \"enums\" string conversion table for enumerated PV was multi-dimensional (expected vector of strings)"); + errMessage (S_cas_badType, +"application type \"enums\" string conversion table for enumerated PV was multi-dimensional (expected vector of strings)"); } pTmp->unreference ();