]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blob - daemon/ReadSession.h
b2e3eae858b40f2f6ad78f971cb760b8c9f96bd9
[android-sdk/arm-ds5-gator.git] / daemon / ReadSession.h
1 /**
2  * Copyright (C) ARM Limited 2010-2011. 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 READ_SESSION_H
10 #define READ_SESSION_H
12 #include "XMLReader.h"
13 #include "SessionData.h"
15 struct ConfigParameters {
16         char* title;            // status title
17         char uuid[64];          // universal unique identifier 
18         char* target_path;      // target path of where to write to disk
19         char* output_path;      // host path of where to write to disk
20         char buffer_mode[64];   // buffer mode, "streaming", "low", "normal", "high" defines oneshot and buffer size
21         char sample_rate[64];   // capture mode, "high", "normal", or "low"
22         int duration;           // length of profile in seconds
23         bool call_stack_unwinding;      // whether stack unwinding is performed
24         struct ImageLinkList *images;   // linked list of image strings
25 };
27 class ReadSession {
28 public:
29         ReadSession(const char * str);
30         ~ReadSession();
31         void parse();
32         ConfigParameters parameters;
33 private:
34         char*  mSessionXML;
35         char*  mPath;
36         void sessionTag(XMLReader* in);
37         void sessionImage(XMLReader* in);
38 };
40 #endif // READ_SESSION_H