|
| 1 | +/* |
| 2 | + * Copyright (c) 2024 Arm Limited. All rights reserved. |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + */ |
| 6 | + |
| 7 | +#ifndef PROJMGRRUNDEBUG_H |
| 8 | +#define PROJMGRRUNDEBUG_H |
| 9 | + |
| 10 | +#include "ProjMgrWorker.h" |
| 11 | + |
| 12 | + /** |
| 13 | + * @brief programming algorithm types |
| 14 | + */ |
| 15 | +struct AlgorithmType { |
| 16 | + std::string algorithm; |
| 17 | + unsigned long long start = 0; |
| 18 | + unsigned long long size = 0; |
| 19 | + unsigned long long ramStart = 0; |
| 20 | + unsigned long long ramSize = 0; |
| 21 | + bool bDefault = false; |
| 22 | +}; |
| 23 | + |
| 24 | +/** |
| 25 | + * @brief files type |
| 26 | +*/ |
| 27 | +struct FilesType { |
| 28 | + std::string file; |
| 29 | + std::string type; |
| 30 | +}; |
| 31 | + |
| 32 | + /** |
| 33 | + * @brief debug run manager types |
| 34 | + */ |
| 35 | +struct RunDebugType { |
| 36 | + std::string solution; |
| 37 | + std::string targetType; |
| 38 | + std::string compiler; |
| 39 | + std::string board; |
| 40 | + std::string boardPack; |
| 41 | + std::string device; |
| 42 | + std::string devicePack; |
| 43 | + std::vector<AlgorithmType> algorithms; |
| 44 | + std::vector<FilesType> outputs; |
| 45 | + std::vector<FilesType> systemDescriptions; |
| 46 | +}; |
| 47 | + |
| 48 | +/** |
| 49 | + * @brief projmgr run debug management class |
| 50 | +*/ |
| 51 | +class ProjMgrRunDebug { |
| 52 | +public: |
| 53 | + /** |
| 54 | + * @brief class constructor |
| 55 | + */ |
| 56 | + ProjMgrRunDebug(void); |
| 57 | + |
| 58 | + /** |
| 59 | + * @brief class destructor |
| 60 | + */ |
| 61 | + ~ProjMgrRunDebug(void); |
| 62 | + |
| 63 | + /** |
| 64 | + * @brief get run debug info |
| 65 | + * @return reference to m_runDebug |
| 66 | + */ |
| 67 | + RunDebugType& Get() { return m_runDebug; }; |
| 68 | + |
| 69 | + /** |
| 70 | + * @brief collect run/debug info for selected contexts |
| 71 | + * @param vector of selected contexts |
| 72 | + * @return true if executed successfully |
| 73 | + */ |
| 74 | + bool CollectSettings(const std::vector<ContextItem*>& contexts); |
| 75 | + |
| 76 | +protected: |
| 77 | + RunDebugType m_runDebug; |
| 78 | +}; |
| 79 | + |
| 80 | +#endif // PROJMGRRUNDEBUG_H |
0 commit comments