Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-10-13 17:29:24 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-10-13 17:29:24 +0300
commite462335f8389d0dabdc4883fa0982dbce509ebe2 (patch)
tree895216f4d7b767219083898cd682e5e1b837c999 /server/TracyUserData.hpp
parentc2f38d0db74ee1eebb2cfd265a035141d8106fcd (diff)
Save/load annotations.
Diffstat (limited to 'server/TracyUserData.hpp')
-rw-r--r--server/TracyUserData.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/TracyUserData.hpp b/server/TracyUserData.hpp
index f361325b..b1d04c3a 100644
--- a/server/TracyUserData.hpp
+++ b/server/TracyUserData.hpp
@@ -1,13 +1,16 @@
#ifndef __TRACYUSERDATA_HPP__
#define __TRACYUSERDATA_HPP__
+#include <memory>
#include <stdint.h>
#include <stdio.h>
#include <string>
+#include <vector>
namespace tracy
{
+struct Annotation;
struct ViewData;
class UserData
@@ -26,6 +29,9 @@ public:
void SaveState( const ViewData& data );
void StateShouldBePreserved();
+ void LoadAnnotations( std::vector<std::unique_ptr<Annotation>>& data );
+ void SaveAnnotations( const std::vector<std::unique_ptr<Annotation>>& data );
+
private:
FILE* OpenFile( const char* filename, bool write );
void Remove( const char* filename );