]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blob - daemon/SessionXML.h
c7e3798d69504c1b91e03c9c9c550229f3ee434b
[android-sdk/arm-ds5-gator.git] / daemon / SessionXML.h
1 /**
2  * Copyright (C) ARM Limited 2010-2013. All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
9 #ifndef SESSION_XML_H
10 #define SESSION_XML_H
12 #include "mxml/mxml.h"
14 struct ImageLinkList;
16 struct ConfigParameters {
17         char buffer_mode[64];   // buffer mode, "streaming", "low", "normal", "high" defines oneshot and buffer size
18         char sample_rate[64];   // capture mode, "high", "normal", or "low"
19         int duration;           // length of profile in seconds
20         bool call_stack_unwinding;      // whether stack unwinding is performed
21         int live_rate;
22         struct ImageLinkList *images;   // linked list of image strings
23 };
25 class SessionXML {
26 public:
27         SessionXML(const char* str);
28         ~SessionXML();
29         void parse();
30         ConfigParameters parameters;
31 private:
32         char*  mSessionXML;
33         char*  mPath;
34         void sessionTag(mxml_node_t *tree, mxml_node_t *node);
35         void sessionImage(mxml_node_t *node);
36 };
38 #endif // SESSION_XML_H