-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathProjMgrWorker.h
More file actions
1404 lines (1278 loc) · 44.4 KB
/
Copy pathProjMgrWorker.h
File metadata and controls
1404 lines (1278 loc) · 44.4 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright (c) 2020-2026 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef PROJMGRWORKER_H
#define PROJMGRWORKER_H
#include "ProjMgrExtGenerator.h"
#include "ProjMgrKernel.h"
#include "ProjMgrParser.h"
#include "ProjMgrUtils.h"
/**
* Forward declarations
*/
class ProjMgrYamlEmitter;
/**
* @brief connections validation result containing
* boolean valid,
* conflicted connections,
* overflowed connections,
* incompatible connections,
* missed provided combined connections,
* active connect map,
*/
struct ConnectionsValidationResult {
bool valid;
StrVec conflicts;
StrPairVec overflows;
StrPairVec incompatibles;
std::vector<ConnectionsCollection> missedCollections;
ActiveConnectMap activeConnectMap;
};
/**
* @brief layers discovering variables
* required layer types,
* missed required types,
* optional type flags,
* generic clayers from search path,
* generic clayers from packs,
* candidate layers,
*/
struct LayersDiscovering {
StrVec requiredLayerTypes;
StrVec missedRequiredTypes;
BoolMap optionalTypeFlags;
StrVecMap genericClayersFromSearchPath;
StrVecMap genericClayersFromPacks;
StrVecMap candidateClayers;
};
/**
* @brief connections lists
* list of consumes
* list of provides
*/
struct ConnectionsList {
StrPairPtrVec consumes;
StrPairPtrVec provides;
};
/**
* @brief Environment list
* cmsis_pack_root,
* cmsis_compiler_root
*/
struct EnvironmentList {
std::string cmsis_pack_root;
std::string cmsis_compiler_root;
};
/**
* @brief toolchain item containing
* toolchain name,
* toolchain version,
* toolchain required version,
* toolchain required range in the format <min>[:<max>],
* toolchain root,
* toolchain config
*/
struct ToolchainItem {
std::string name;
std::string version;
std::string required;
std::string range;
std::string root;
std::string config;
};
/**
* @brief package item containing
* pack information pack,
* path to pack path,
* origin file,
*/
struct PackageItem {
PackInfo pack;
std::string path;
std::string origin;
std::string selectedBy;
std::string resolvedTo;
};
/**
* @brief device item containing
* device name,
* device vendor,
* device processor name,
*/
struct DeviceItem {
std::string vendor;
std::string name;
std::string pname;
};
/**
* @brief board item containing
* board vendor,
* board name,
*/
struct BoardItem {
std::string vendor;
std::string name;
std::string revision;
bool operator==(const BoardItem& b) const {
return name == b.name && revision == b.revision;
}
};
/**
* @brief target item containing
* target-type board,
* target-type device name,
*/
struct TargetItem {
std::string board;
std::string device;
};
/**
* @brief selected component item containing
* pointer to component instance
* pointer to input component item
* generator identifier
*/
struct SelectedComponentItem {
RteComponentInstance* instance;
ComponentItem* item;
std::string generator;
};
/**
* @brief component file item containing
* file name
* file attribute
* file category
* file language
* file scope
* file version
* file select
*/
struct ComponentFileItem {
std::string name;
std::string attr;
std::string category;
std::string language;
std::string scope;
std::string version;
std::string select;
};
/**
* @brief NPU info item containing
* vendor name
* device name
* processor name
* core name
* NPU type
* NPU MACs
* absolute path of VELA config file
*/
struct NpuInfoItem {
std::string vendorName;
std::string deviceName;
std::string pname;
std::string dcore;
std::string type;
std::string macs;
std::string velaAbsolutePath;
};
/**
* @brief gpdsc item containing
* component id
* generator id
* working directory
*/
struct GpdscItem {
std::string component;
std::string generator;
std::string workingDir;
};
/**
* @brief translation control item containing
* final context controls after processing,
* csolution controls,
* cproject controls,
* target-type controls,
* build-type controls,
* list of project setup controls,
* map of layers translation controls,
*/
struct TranslationControl {
BuildType processed;
BuildType csolution;
BuildType cproject;
BuildType target;
BuildType build;
std::vector<BuildType> setups;
std::map<std::string, BuildType> clayers;
};
/**
* @brief linker context item containing
* auto linker script generation
* list of linker scripts for processing,
* list of linker regions files for processing,
* list of defines
* processed regions file,
* processed script file
*/
struct LinkerContextItem {
bool autoGen;
StrVec scriptList;
StrVec regionsList;
StrVec defines;
std::string regions;
std::string script;
};
/**
* @brief book item containing
* string name
* string title
* string category
*/
struct BookItem {
std::string name;
std::string title;
std::string category;
};
/**
* @brief context type item containing
* list of all build types including mapped ones
* list of all target types including mapped ones
* map of missing build types
* map of missing target types
*/
struct ContextTypesItem {
StrVec allBuildTypes;
StrVec allTargetTypes;
BoolMap missingBuildTypes;
BoolMap missingTargetTypes;
};
/**
* @brief validation condition item containing
* expression (accept/deny/require ...)
* related aggregates
*/
struct ValidationCondition {
std::string expression;
StrSet aggregates;
};
/**
* @brief validation result containing
* result according to enum ConditionResult
* component/api identifier
* direct related aggregates
* conditions (expressions and related identifiers)
*/
struct ValidationResult {
RteItem::ConditionResult result;
std::string id;
StrSet aggregates;
std::vector<ValidationCondition> conditions;
};
/**
* @brief gdb server item containing
* port number of processor
* processor name
*/
struct GdbServerItem {
unsigned long long port;
std::string pname;
};
/**
* @brief telnet port item extends TelnetItem containing
resolved port number
*/
struct TelnetOptionsItem : TelnetItem {
unsigned long long ullPort;
};
/**
* @brief example environment item containing
* project file with extension
* subdirectory to be copied
*/
struct EnvironmentItem {
std::string load;
std::string folder;
bool operator==(const EnvironmentItem& b) const { return true; }
};
/**
* @brief example item containing
* name of example
* description
* documentation
* version
* archive
* map of environments
* list of compatible boards
* list of components
* list of categories
* list of keywords
* pack identifier
*/
struct ExampleItem {
std::string name;
std::string description;
std::string doc;
std::string version;
std::string archive;
std::map<std::string, EnvironmentItem> environments;
std::vector<BoardItem> boards;
std::vector<std::string> components;
std::vector<std::string> categories;
std::vector<std::string> keywords;
std::string pack;
bool operator==(const ExampleItem& e) const {
return name == e.name && version == e.version && description == e.description &&
boards == e.boards && environments == e.environments;
}
};
/**
* @brief template item containing
* name of template
* description
* path to the directory that contains the template
* path to the *.csolution.yml file
* path to copy the template into
* pack identifier
* placeholder symmetric to ExampleItem for reusable template
*/
struct TemplateItem {
std::string name;
std::string description;
std::string path;
std::string file;
std::string copyTo;
std::string pack;
std::vector<BoardItem> boards;
};
/**
* @brief debugger type
* name of debug configuration
* brief description
* debug protocol (jtag or swd)
* debug clock speed
* debug configuration file
* start pname
* list of gdbserver items
* list of telnet options items
* custom options
*/
struct DebuggerType {
std::string name;
std::string info;
std::string protocol;
std::optional<unsigned long long> clock;
std::string dbgconf;
std::string startPname;
std::vector<GdbServerItem> gdbserver;
std::map<std::string, TelnetOptionsItem> telnet;
SystemViewItem systemView;
CustomItem custom;
};
/**
* @brief settings type containing
* connection set
*/
struct SettingsType {
std::string set;
};
/**
* @brief layer variable type containing
* variable name
* clayer path
* brief description
* list of connection sets
* directory path that contains the layer (from PDSC)
* clayer path relative to directory path (from PDSC)
* proposed destination directory for the layer (from PDSC)
*/
struct LayerVariable {
std::string name;
std::string clayer;
std::string description;
std::vector<SettingsType> settings;
std::string path;
std::string file;
std::string copyTo;
};
/**
* @brief variables configuration type containing
* list of layer variables
*/
struct VariablesConfiguration {
std::vector<LayerVariable> variables;
};
/**
* @brief project context item containing
* pointer to csolution,
* pointer to cproject,
* map of pointers to clayers,
* pointer to rte project,
* pointer to rte target,
* pointer to rte filtered model,
* pointer to rte components,
* pointer to rte device,
* pointer to rte board,
* translation controls,
* target-type item,
* parent csolution target properties,
* directories,
* build-type/target-type pair,
* project name,
* project description,
* list of output files,
* output type,
* device selection,
* board selection,
* device item struct,
* board item struct,
* list of package requirements,
* map of required pdsc files and optionally its local path
* list of component requirements,
* compiler string in short syntax,
* toolchain with parsed name and version,
* map of target attributes,
* map of used packages,
* map of used components,
* map of unresolved dependencies,
* map of config files,
* map of PLM status,
* list of user groups,
* map of absolute file paths,
* map of generators,
* map of compatible layers,
* map of layer variables,
* valid connections,
* linker options,
* map of variables,
* external generator directory,
* device pack,
* board pack,
* boolean processed precedences
* map of user inputed pack ID to resolved pack ID
* set of absolute file paths of project local packs
* vector of dependent contexts
* map of layers descriptors from packs
* flag indicating the context needs a rebuild
* vector of device books
* vector of board books
* additional memory
* debugger
* default dbgconf
* images
* vector of NPUs
* selected target-set
* load offset for generated binary
* elf load mode
* image only flag
* west options
* west on flag
* layer variables configurations
* unresolved components
* map of available packs for locked packs
* map of sequences to expanded absolute paths
*/
struct ContextItem {
CdefaultItem* cdefault = nullptr;
CsolutionItem* csolution = nullptr;
CprojectItem* cproject = nullptr;
std::map<std::string, ClayerItem*> clayers;
RteProject* rteActiveProject = nullptr;
RteTarget* rteActiveTarget = nullptr;
RteModel* rteFilteredModel = nullptr;
RteItem* rteComponents = nullptr;
RteDeviceItem* rteDevice = nullptr;
RteBoard* rteBoard = nullptr;
TranslationControl controls;
TargetItem targetItem;
DirectoriesItem directories;
TypePair type;
std::string name;
std::string description;
OutputTypes outputTypes;
std::string device;
std::string board;
DeviceItem deviceItem;
BoardItem boardItem;
std::vector<PackageItem> packRequirements;
std::map<std::string, std::pair<std::string, std::string>> pdscFiles;
std::vector<PackInfo> missingPacks;
StrVec unusedPacks;
std::vector<std::pair<ComponentItem, std::string>> componentRequirements;
std::string compiler;
ToolchainItem toolchain;
std::map<std::string, std::string> targetAttributes;
std::map<std::string, RtePackage*> packages;
std::map<std::string, SelectedComponentItem> components;
std::map<std::string, std::pair<RteApi*, std::vector<std::string>>> apis;
std::map<std::string, SelectedComponentItem> bootstrapComponents;
StrMap bootstrapMap;
std::vector<ValidationResult> validationResults;
std::map<std::string, std::map<std::string, RteFileInstance*>> configFiles;
std::map<std::string, std::string> plmStatus;
std::map<std::string, std::vector<ComponentFileItem>> componentFiles;
std::map<std::string, std::vector<ComponentFileItem>> apiFiles;
std::map<std::string, std::vector<ComponentFileItem>> generatorInputFiles;
std::vector<GroupNode> groups;
std::map<std::string, RteGenerator*> generators;
std::map<std::string, GpdscItem> gpdscs;
StrVecMap compatibleLayers;
StrMap layerVariables;
std::vector<ConnectionsCollectionVec> validConnections;
LinkerContextItem linker;
std::map<std::string, std::string> variables;
std::map<std::string, GeneratorOptionsItem> extGen;
RtePackage* devicePack = nullptr;
RtePackage* boardPack = nullptr;
bool precedences;
std::map<std::string, std::map<std::string, PackageItem> > userInputToResolvedPackIdMap;
StrSet localPackPaths;
StrVec dependsOn;
std::map<std::string, RteItem*> packLayers;
bool needRebuild = false;
std::vector<BookItem> deviceBooks;
std::vector<BookItem> boardBooks;
std::vector<MemoryItem> memory;
DebuggerType debugger;
std::pair<std::string, RteFileInstance*> dbgconf;
std::vector<ImageItem> images;
std::vector<NpuInfoItem> npuInfoItems;
std::string targetSet;
std::string loadOffset;
std::string elfLoadMode;
bool imageOnly = false;
WestDesc west;
bool westOn = false;
std::vector<VariablesConfiguration> variablesConfigurations;
std::set<RteComponentInstance*> unresolvedComponents;
StrMap availablePackVersions;
StrMap absPathSequences;
};
/**
* @brief plm status
*/
static constexpr const char* PLM_STATUS_MISSING_FILE = "missing file";
static constexpr const char* PLM_STATUS_MISSING_BASE = "missing base";
static constexpr const char* PLM_STATUS_UPDATE_REQUIRED = "update required";
static constexpr const char* PLM_STATUS_UPDATE_RECOMMENDED = "update recommended";
static constexpr const char* PLM_STATUS_UPDATE_SUGGESTED = "update suggested";
/**
* @brief west board variable
*/
static constexpr const char* WEST_BOARD = "west-board";
/**
* @brief set policy for packs loading [latest|all|required]
*/
enum class LoadPacksPolicy
{
DEFAULT = 0,
LATEST,
ALL,
REQUIRED
};
/**
* @brief Message Type
*/
enum class MessageType {
Warning,
Error
};
/**
* @brief Process Board/Device
*/
enum class BoardOrDevice {
Both,
None,
SkipDevice,
SkipProcessor,
};
/**
* @brief projmgr worker class responsible for processing requests and orchestrating parser and generator calls
*/
class ProjMgrWorker {
public:
/**
* @brief class constructor
*/
ProjMgrWorker(ProjMgrParser* parser, ProjMgrExtGenerator* extGenerator);
/**
* @brief class destructor
*/
~ProjMgrWorker(void);
/**
* @brief process context
* @param reference to context
* @param loadGenFiles boolean automatically load generated files, default true
* @param resolveDependencies boolean automatically resolve dependencies, default true
* @param updateRteFiles boolean update RTE files, default true
* @return true if executed successfully
*/
bool ProcessContext(ContextItem& context, bool loadGenFiles = true, bool resolveDependencies = true, bool updateRteFiles = true);
/**
* @brief list available packs
* @param reference to list of packs
* @param bListMissingPacksOnly only missing packs
* @param bLocked print available update version for locked packs
* @param filter words to filter results
* @return true if executed successfully
*/
bool ListPacks(std::vector<std::string>& packs, bool bListMissingPacksOnly, bool bLocked = false, const std::string& filter = RteUtils::EMPTY_STRING);
/**
* @brief list available boards
* @param reference to list of boards
* @param filter words to filter results
* @return true if executed successfully
*/
bool ListBoards(std::vector<std::string>& boards, const std::string& filter = RteUtils::EMPTY_STRING);
/**
* @brief list available devices
* @param reference to list of devices
* @param filter words to filter results
* @return true if executed successfully
*/
bool ListDevices(std::vector<std::string>& devices, const std::string& filter = RteUtils::EMPTY_STRING);
/**
* @brief list available NPUs
* @param reference to list of NPUs
* @param filter words to filter results
* @return true if executed successfully
*/
bool ListNpus(std::vector<std::string>& npus, const std::string& filter = RteUtils::EMPTY_STRING);
/**
* @brief list available components
* @param reference to list of components
* @param filter words to filter results
* @return true if executed successfully
*/
bool ListComponents(std::vector<std::string>& components, const std::string& filter = RteUtils::EMPTY_STRING);
/**
* @brief list configuration files
* @param reference to list of file description strings
* @param filter words to filter results
* @return true if executed successfully
*/
bool ListConfigs(std::vector<std::string>& dependencies, const std::string& filter = RteUtils::EMPTY_STRING);
/**
* @brief list available dependencies
* @param reference to list of dependencies
* @param filter words to filter results
* @return true if executed successfully
*/
bool ListDependencies(std::vector<std::string>& dependencies, const std::string& filter = RteUtils::EMPTY_STRING);
/**
* @brief list available examples
* @param reference to list of examples
* @param filter words to filter results
* @return true if executed successfully
*/
bool ListExamples(std::vector<std::string>& examples, const std::string& filter = RteUtils::EMPTY_STRING);
/**
* @brief list available csolution templates
* @param reference to list of csolution templates
* @param filter words to filter results
* @return true if executed successfully
*/
bool ListTemplates(std::vector<std::string>& templates, const std::string& filter = RteUtils::EMPTY_STRING);
/**
* @brief list contexts
* @param reference to list of contexts
* @param filter words to filter results
* @return true if executed successfully
*/
bool ListContexts(std::vector<std::string>& contexts, const std::string& filter = RteUtils::EMPTY_STRING, const bool ymlOrder = false);
/**
* @brief list target-sets
* @param reference to list of target-sets
* @param filter words to filter results
* @return true if executed successfully
*/
bool ListTargetSets(std::vector<std::string>& targetSets, const std::string& filter = RteUtils::EMPTY_STRING);
/**
* @brief list generators of a given context
* @param reference to list of generators
* @return true if executed successfully
*/
bool ListGenerators(std::vector<std::string>& generators);
/**
* @brief list available, referenced or compatible layers
* @param reference to list of layers
* @param reference clayer search path
* @param reference to failed contexts set
* @return true if executed successfully
*/
bool ListLayers(std::vector<std::string>& layers, const std::string& clayerSearchPath, StrSet& failedContexts);
/**
* @brief list installed toolchains
* @param reference to vector of toolchain items
* @return true if executed successfully
*/
bool ListToolchains(std::vector<ToolchainItem>& toolchains);
/**
* @brief list environment configurations
* @param reference to EnvironmentList struct
* @return true if executed successfully
*/
bool ListEnvironment(EnvironmentList& env);
/**
* @brief list config files
* @param reference to vector of config files info
* @return true if executed successfully
*/
bool ListConfigFiles(std::vector<std::string>& configFiles);
/**
* @brief add contexts for a given descriptor
* @param reference to parser
* @param reference to descriptor
* @param cproject filename
* @return true if executed successfully
*/
bool AddContexts(ProjMgrParser& parser, ContextDesc& descriptor, const std::string& cprojectFile);
/**
* @brief get context map
* @param pointer to context map
*/
void GetContexts(std::map<std::string, ContextItem>* &contexts);
/**
* @brief get yml ordered contexts
* @param reference to contexts
*/
void GetYmlOrderedContexts(std::vector<std::string> &contexts);
/**
* @brief get executes node at solution level
* @param reference to executes map
*/
void GetExecutes(std::map<std::string, ExecutesItem>& executes);
/**
* @brief set output directory
* @param reference to output directory
*/
void SetOutputDir(const std::string& outputDir);
/**
* @brief update csolution tmp directory
*/
void UpdateTmpDir();
/**
* @brief set root directory (csolution directory)
* @param reference to root directory
*/
void SetRootDir(const std::string& rootDir);
/**
* @brief set csolution file
* @param reference to absolute csolution.yml filename
*/
void SetCsolutionFile(const std::string& csolutionFile);
/**
* @brief set check schema
* @param boolean check schema
*/
void SetCheckSchema(bool checkSchema);
/**
* @brief set verbose mode
* @param boolean verbose
*/
void SetVerbose(bool verbose);
/**
* @brief set debug verbosity
* @param boolean debug
*/
void SetDebug(bool debug);
/**
* @brief set dry-run mode
* @param boolean dryRun
*/
void SetDryRun(bool dryRun);
/**
* @brief set cbuild2cmake mode
* @param boolean cbuild2cmake
*/
void SetCbuild2Cmake(bool cbuild2cmake);
/**
* @brief set printing paths relative to project or ${CMSSIS_PACK_ROOT}
* @param boolean bRelativePaths
*/
void SetPrintRelativePaths(bool bRelativePaths);
/**
* @brief set load packs policy
* @param reference to load packs policy
*/
void SetLoadPacksPolicy(const LoadPacksPolicy& policy);
/**
* @brief set vector of environment variables
* @param reference to vector of environment variables
*/
void SetEnvironmentVariables(const StrVec& envVars);
/**
* @brief set selected toolchain
* @param reference to selected toolchain
*/
void SetSelectedToolchain(const std::string& selectedToolchain);
/**
* @brief set flag when setup command is triggered
* @param boolean isSetup
*/
void SetUpCommand(bool isSetup);
/**
* @brief set flag when running in rpc mode
* @param boolean rpcMode
*/
void RpcMode(bool rpcMode);
/**
* @brief set yaml emitter
* @param pointer to yaml emitter
*/
void SetEmitter(ProjMgrYamlEmitter* emitter);
/**
* @brief execute generator of a given context
* @param generator identifier
* @return true if executed successfully
*/
bool ExecuteGenerator(std::string& generatorId);
/**
* @brief execute external generator of a given context
* @param generator identifier
* @return true if executed successfully
*/
bool ExecuteExtGenerator(std::string& generatorId);
/**
* @brief initialize model
* @return true if executed successfully
*/
bool InitializeModel(void);
/**
* @brief initialize rte target for a given context
* @param context reference
* @return true if executed successfully
*/
bool InitializeTarget(ContextItem& context);
/**
* @brief load all relevant packs
* @return true if executed successfully
*/
bool LoadAllRelevantPacks(void);
/**
* @brief parse context selection
* @param contexts pattern (wildcards are allowed)
* @param check cbuildset flag (default false)
* @return true if executed successfully
*/
bool ParseContextSelection(
const std::vector<std::string>& contextSelection,
const bool checkCbuildSet = false);
/**
* @brief get the list of selected contexts
* @return list of selected contexts
*/
std::vector<std::string> GetSelectedContexts() const;
/**
* @brief check if context is selected
* @param context name
* @return true if it is selected
*/
bool IsContextSelected(const std::string& context);
/**
* @brief get compiler root directory
* @return string compiler root directory
*/
std::string GetCompilerRoot(void);
/**
* @brief get pack root directory
* @return string pack root directory
*/
std::string GetPackRoot(void);
/**
* @brief retrieve all context types, including mapped ones
*/
void RetrieveAllContextTypes(void);
/**
* @brief print missing filters
*/
void PrintMissingFilters(void);
/**
* @brief get selected toolchain
* @return string selected toolchain
*/
std::string GetSelectedToochain(void);
/**
* @brief get selectable compilers
* @return string vector reference to selectable compilers
*/
const StrVec& GetSelectableCompilers(void);
/**
* @brief process global generators for a given context
* @param context selected context item
* @param generator identifier
* @param reference to project type
* @param reference to sibling contexts
* @return true if executed successfully
*/