File: nc-query-utils.h

package info (click to toggle)
yuma123 2.13-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 22,364 kB
  • sloc: ansic: 185,010; cpp: 10,966; python: 7,902; sh: 2,631; makefile: 1,179; xml: 807; exp: 759; perl: 70
file content (35 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (5)
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
31
32
33
34
35
#ifndef __NC_QUERY_UTILS_H
#define __NC_QUERY_UTILS_H

// ---------------------------------------------------------------------------|
#include <string>
#include <cstdint>

// ---------------------------------------------------------------------------|
namespace YumaTest
{

// ---------------------------------------------------------------------------!
/**
 * Extract the message id from the supplied XML query.
 *
 * \param queryStr an XML query.
 * \return the message id as a string
 *
 */
std::string extractMessageIdStr( const std::string& queryStr );

/**
 * Extract the message id from the supplied XML query.
 *
 * \param queryStr an XML query.
 * \return the message id as a unit16_t
 *
 */
uint16_t extractMessageId( const std::string& queryStr );



} // namespace YumaTest

#endif // __NC_QUERY_UTILS_H