-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSipUtility.hpp
More file actions
30 lines (28 loc) · 827 Bytes
/
SipUtility.hpp
File metadata and controls
30 lines (28 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef SIPUTILITY_H
#define SIPUTILITY_H
#include <string>
#include <map>
#include <memory>
#include "SipMessage.hpp"
using std::string;
using std::map;
using std::auto_ptr;
namespace Sip {
class Utility {
public:
/**
* Utility function for transforming a string of key & value tags into a map of tags
* @param rawTags A string representations of one or more tags in the format (;key=value)*
* @param tagMap The map to contain the tags
*/
static void FillTags ( const string& rawTags, map<string, string>& tagMap );
/**
* @brief Parses a raw string into a SipMessage.
*
* @param message an auto_ptr<SipMessage>
* @param data The raw string to parse
*/
static void ParseMessage( auto_ptr<SipMessage>& sipMessage, const string& data );
}; //class Utility
}; //namespace Sip
#endif //SIPUTILITY_H