refactored namespaces
This commit is contained in:
@@ -13,6 +13,8 @@ namespace flippr_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class IEightDigitDisplay : public IOutputDisplay
|
||||
{
|
||||
@@ -20,6 +22,7 @@ public:
|
||||
virtual void write_content(std::array<char, 8> content) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif //FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
|
||||
@@ -12,17 +12,21 @@ namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class ILamp
|
||||
{
|
||||
public:
|
||||
~ILamp(){};
|
||||
~ILamp()
|
||||
{};
|
||||
|
||||
void activate();
|
||||
void deactivate();
|
||||
bool is_activated();
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,18 +12,22 @@ namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class IDisplay
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ~IDisplay() {};
|
||||
virtual ~IDisplay()
|
||||
{};
|
||||
|
||||
virtual void write_score(int score) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif /* SRC_OUTPUT_IOUTPUTDISPLAY_H_ */
|
||||
@@ -13,6 +13,8 @@ namespace flippr_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class ISevenDigitDisplay : public IOutputDisplay
|
||||
{
|
||||
@@ -20,6 +22,7 @@ public:
|
||||
virtual void write_content(std::array<char, 7> content) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif //FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
|
||||
@@ -12,14 +12,18 @@ namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class ISolenoid
|
||||
{
|
||||
public:
|
||||
~ISolenoid() {};
|
||||
~ISolenoid()
|
||||
{};
|
||||
void trigger();
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@ namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class ISound
|
||||
{
|
||||
@@ -22,6 +24,7 @@ public:
|
||||
virtual void play() = 0;
|
||||
};
|
||||
|
||||
}
|
||||
} /* namespace output */
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user