sipxtacklib  Version 3.3
NetAttributeTokenizer.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _NetAttributeTokenizer_h_
13 #define _NetAttributeTokenizer_h_
14 
15 // SYSTEM INCLUDES
16 //#include <...>
17 
18 // APPLICATION INCLUDES
19 #include <utl/UtlString.h>
20 
21 // DEFINES
22 // MACROS
23 // EXTERNAL FUNCTIONS
24 // EXTERNAL VARIABLES
25 // CONSTANTS
26 // STRUCTS
27 // TYPEDEFS
28 // FORWARD DECLARATIONS
29 class UtlList;
30 
31 //:Class short description which may consist of multiple lines (note the ':')
32 // Class detailed description which may extend to multiple lines
34 {
35 /* //////////////////////////// PUBLIC //////////////////////////////////// */
36 public:
37 
38 /* ============================ CREATORS ================================== */
39 
40  NetAttributeTokenizer(const char* parseString = NULL);
41  //:Default constructor
42 
43  virtual
45  //:Destructor
46 
47 /* ============================ MANIPULATORS ============================== */
48 
49  UtlBoolean getNextAttribute(UtlString& attributeName, UtlString& attributeValue);
50  // Retrieve the next attribute name and value if present
51 
52  UtlBoolean getAttributes(UtlList& attributeList);
53  // Retrieve all of the attributes in the collection of NameValuePair(s)
54 
55 /* ============================ ACCESSORS ================================= */
56 
57 /* ============================ INQUIRY =================================== */
58 
59 /* //////////////////////////// PROTECTED ///////////////////////////////// */
60 protected:
61 
62 /* //////////////////////////// PRIVATE /////////////////////////////////// */
63 private:
64 
65  UtlString attributeParseString;
66  int parseIndex;
67 
68  NetAttributeTokenizer(const NetAttributeTokenizer& rNetAttributeTokenizer);
69  //:Copy constructor (disabled)
70  NetAttributeTokenizer& operator=(const NetAttributeTokenizer& rhs);
71  //:Assignment operator (disabled)
72 
73 };
74 
75 /* ============================ INLINE METHODS ============================ */
76 
77 #endif // _NetAttributeTokenizer_h_
Definition: NetAttributeTokenizer.h:33
UtlBoolean getAttributes(UtlList &attributeList)
Definition: NetAttributeTokenizer.cpp:191
UtlBoolean getNextAttribute(UtlString &attributeName, UtlString &attributeValue)
Definition: NetAttributeTokenizer.cpp:63
NetAttributeTokenizer(const char *parseString=NULL)
Definition: NetAttributeTokenizer.cpp:31
virtual ~NetAttributeTokenizer()
Definition: NetAttributeTokenizer.cpp:47

sipXtackLib home page