#if USE_DELAY_POOLS
#include "CompositePoolNode.h"
-#include "SquidString.h"
+#include "sbuf/SBuf.h"
/*
\ingroup DelayPoolsAPI
public:
static CommonPool *Factory (unsigned char _class, CompositePoolNode::Pointer&);
- char const* theClassTypeLabel() const {return typeLabel.termedBuf();}
+ const SBuf &classTypeLabel() const { return typeLabel; }
protected:
CommonPool();
- String typeLabel;
+ SBuf typeLabel;
};
#endif /* USE_DELAY_POOLS */
if (theComposite() == nullptr)
return;
- storeAppendPrintf(entry, "delay_class %d %s\n", i + 1, pool->theClassTypeLabel());
+ storeAppendPrintf(entry, "delay_class %d " SQUIDSBUFPH "\n", i + 1, SQUIDSBUFPRINT(pool->classTypeLabel()));
LOCAL_ARRAY(char, nom, 32);
#include "MemObject.h"
#include "mgr/Registration.h"
#include "NullDelayId.h"
-#include "SquidString.h"
+#include "sbuf/SBuf.h"
#include "Store.h"
#include "StoreClient.h"
case 1:
compositeCopy = new Aggregate;
- result->typeLabel = "1";
+ result->typeLabel = SBuf("1");
break;
case 2:
- result->typeLabel = "2";
+ result->typeLabel = SBuf("2");
{
DelayVector::Pointer temp = new DelayVector;
compositeCopy = temp.getRaw();
break;
case 3:
- result->typeLabel = "3";
+ result->typeLabel = SBuf("3");
{
DelayVector::Pointer temp = new DelayVector;
compositeCopy = temp.getRaw();
break;
case 4:
- result->typeLabel = "4";
+ result->typeLabel = SBuf("4");
{
DelayVector::Pointer temp = new DelayVector;
compositeCopy = temp.getRaw();
break;
case 5:
- result->typeLabel = "5";
+ result->typeLabel = SBuf("5");
compositeCopy = new DelayTagged;
break;
for (unsigned short i = 0; i < DelayPools::pools(); ++i) {
if (DelayPools::delay_data[i].theComposite().getRaw()) {
- storeAppendPrintf(sentry, "Pool: %d\n\tClass: %s\n\n", i + 1, DelayPools::delay_data[i].pool->theClassTypeLabel());
+ storeAppendPrintf(sentry, "Pool: %d\n\tClass: " SQUIDSBUFPH "\n\n", i + 1, SQUIDSBUFPRINT(DelayPools::delay_data[i].pool->classTypeLabel()));
DelayPools::delay_data[i].theComposite()->stats (sentry);
} else
storeAppendPrintf(sentry, "\tMisconfigured pool.\n\n");