3 #include "parts-test-main.h"
4 #include "parts-test-extra-parts-views.h"
6 MainParts::MainParts () {}
8 MainParts::~MainParts ()
10 for (int i
= static_cast<int>(main_extra_parts_
.size()) - 1; i
>= 0; --i
)
11 delete main_extra_parts_
[i
];
12 main_extra_parts_
.clear();
16 MainParts::AddParts (ExtraParts
*parts
)
18 main_extra_parts_
.push_back (parts
);
23 MainParts::PreEarlyInitialization (void)
25 for (int i
= 0; i
< main_extra_parts_
.size(); ++i
)
26 main_extra_parts_
[i
]->PreEarlyInitialization ();
31 main (int argc
, char **argv
)
33 MainParts
*main_parts
= new MainParts ();
35 main_parts
->AddParts (new ExtraPartsViews ());
36 main_parts
->PreEarlyInitialization ();