1#if defined(HAVE_CONFIG_H)
20 freeParserContainer();
28 if (rhs.mParserContainer)
30 mParserContainer = rhs.mParserContainer->
clone();
32 else if(rhs.mHeaders.size())
34 mHeaders=rhs.mHeaders;
43 if (rhs.mParserContainer)
45 mParserContainer = rhs.mParserContainer->
clone();
47 else if(rhs.mHeaders.size())
49 mHeaders=rhs.mHeaders;
60 freeParserContainer();
62 if (rhs.mParserContainer != 0)
64 mParserContainer = rhs.mParserContainer->
clone();
68 mHeaders=rhs.mHeaders;
86 if (!headerName.
empty())
121 if (!headerName.
empty())
178 freeParserContainer();
185 if (mParserContainer)
187 return mParserContainer->
empty();
191 return mHeaders.empty();
196HeaderFieldValueList::freeParserContainer()
209 ::operator
delete(mParserContainer);
218 if (mParserContainer)
220 return mParserContainer->
size();
224 return mHeaders.size();
231 if (mParserContainer)
237 if (index < mHeaders.size())
#define resip_assert(x)
This file needs to work for both C and C++ code.
An iostream that operates on an existing Data.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
bool empty() const noexcept
Checks whether the Data is empty.
Data & copy(const char *buf, size_type length)
Functional equivalent of: *this = Data(buf, length) but avoids the intermediate allocation and free.
static Data encode(const Data &input)
bool getHeaderValueByIndex(size_t index, Data &headerValue) const
bool empty() const
return true or false indicating whether the mParsers vector is empty or not
EncodeStream & encodeEmbedded(const Data &headerName, EncodeStream &str) const
virtual ~ParserContainerBase()
virtual destructor - empty in this class
virtual ParserContainerBase * clone() const =0
pure virtual function to be implemented in derived classes with the intention of cloning this object
size_t size() const
return the size of the mParsers vector
EncodeStream & encode(const Data &headerName, EncodeStream &str) const
virtual void deallocate(void *ptr)=0
A dirt-simple lightweight stl pool allocator meant for use in short-lifetime objects.
static const char * SPACE
static const char * COLON
static const char * COMMA
static const char * EQUALS
static const char * AMPERSAND
dcm! – add UnusedChecking(_enum) below;