* fixed search activating 2 nodes, because of NodeType in query * fixed search results didn't contain results with same name * added protected contents to sample and tictactoe code * fixed CxxParserTests not logging errors, disabled logging for tests with errors * fixed CxxParserTests not finding system headers, added TestSettings.xml and pass headers to Parser::parseFile()
34 lines
309 B
C++
34 lines
309 B
C++
class Player {
|
|
public:
|
|
void Do() {}
|
|
};
|
|
|
|
class Base {
|
|
protected:
|
|
void Init() {}
|
|
};
|
|
|
|
class Game : public Base {
|
|
public:
|
|
Game() {
|
|
Init();
|
|
}
|
|
|
|
void Run() {
|
|
player.Do();
|
|
}
|
|
|
|
private:
|
|
Player player;
|
|
};
|
|
|
|
Game* game;
|
|
|
|
int main() {
|
|
game = new Game();
|
|
|
|
game->Run();
|
|
|
|
delete game;
|
|
return 0;
|
|
} |