This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <list> | |
#include <memory> | |
using namespace std; | |
// Forwards | |
class VisitorIntf; | |
// Abstract interface for Element objects | |
class ElementIntf { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <cstdlib> | |
#include <iostream> | |
#include <list> | |
#include <memory> | |
using namespace std; | |
// Legacy account | |
class LegacyAccount { | |
int no; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
using namespace std; | |
// Command interface | |
class Command { | |
public: | |
virtual ~Command(); | |
virtual void execute() = 0; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
// STATES | |
enum ErrorStates { ANALYZE = 0, FIX, VERIFY, CLOSE }; | |
// Command Class | |
class ErrorReport { | |
private: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
// Base class | |
// Template class | |
class Account { | |
public: | |
// Abstract Methods | |
virtual ~Account(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <set> | |
using namespace std; | |
// ---------------- Observer interface ----------------- | |
class MyObserver { | |
public: | |
virtual void Notify() = 0; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
// Abstract base class | |
class Mobile { | |
public: | |
virtual ~Mobile(); | |
virtual string Camera() = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
// Abstract Base Class | |
class Shape { | |
public: | |
virtual void Draw() = 0; | |
virtual ~Shape(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <memory> | |
#include <vector> | |
class Test { | |
public: | |
Test() { std::clog << "created" << std::endl; } | |
~Test() { std::clog << "destroid " << std::endl; } | |
int value = 56; | |
}; | |
int main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cmake file version 1.0 | |
#author behnam sabaghi | |
#update time 29 / 12 / 2017 | |
cmake_minimum_required(VERSION 2.8) | |
PROJECT(ProjectName) | |
set(CMAKE_PREFIX_PATH "$ENV{QTDIR}") |