Skip to content

Instantly share code, notes, and snippets.

@RobertLarson
RobertLarson / GameDate.cpp
Created August 2, 2017 02:29
GameDate.cpp
GameDate::GameDate(std::string date)
: m_date(date)
{
}
GameDate::~GameDate() {
}
void GameDate::AddGame(const unsigned int& gameNumber, Game* game) {
class Game {
public:
Game();
virtual ~Game();
void SetTime(const std::string & time);
void SetHomeTeam(const std::string & name);
void SetAwayTeam(const std::string & name);
@RobertLarson
RobertLarson / Game.cpp
Created August 2, 2017 02:27
Game.cpp
Game::Game() {
}
Game::~Game() {
}
void Game::SetTime(const std::string & time)
{
m_time = time;
}
@RobertLarson
RobertLarson / CellPhoneTextAppTest.cpp
Created June 14, 2017 23:53
CellPhoneTextAppTest.cpp
#include "GalaxyS8TextApp.h"
#include "IPhone8TextApp.h"
#include "SprintPhoneTextAppImpl.h"
#include "VerizonPhoneTextAppImpl.h"
void SendText(CellPhoneTextApp & textApp)
{
textApp.Open();
textApp.AddRecipient(std::string("555-123-4567"));
@RobertLarson
RobertLarson / VerizonPhoneTextAppImpl.cpp
Created June 10, 2017 01:26
VerizonPhoneTextAppImpl.cpp
#include "VerizonPhoneTextAppImpl.h"
#include <iostream>
VerizonPhoneTextAppImpl::VerizonPhoneTextAppImpl() {
}
VerizonPhoneTextAppImpl::~VerizonPhoneTextAppImpl() {
}
@RobertLarson
RobertLarson / VerizonPhoneTextAppImpl.h
Created June 10, 2017 01:25
VerizonPhoneTextAppImpl.h
#include "CellPhoneTextAppImpl.h"
class VerizonPhoneTextAppImpl : public CellPhoneTextAppImpl {
public:
VerizonPhoneTextAppImpl();
virtual ~VerizonPhoneTextAppImpl();
virtual void SendTextImpl(std::vector<std::string> recipients,
std::string textField);
@RobertLarson
RobertLarson / SprintPhoneTextAppImpl.cpp
Created June 10, 2017 01:24
SprintPhoneTextAppImpl.cpp
#include "SprintPhoneTextAppImpl.h"
#include <iostream>
SprintPhoneTextAppImpl::SprintPhoneTextAppImpl() {
}
SprintPhoneTextAppImpl::~SprintPhoneTextAppImpl() {
}
@RobertLarson
RobertLarson / SprintPhoneTextAppImpl.h
Created June 10, 2017 01:23
SprintPhoneTextAppImpl.h
#include "CellPhoneTextAppImpl.h"
class SprintPhoneTextAppImpl : public CellPhoneTextAppImpl{
public:
SprintPhoneTextAppImpl();
virtual ~SprintPhoneTextAppImpl();
virtual void SendTextImpl(std::vector<std::string> recipients,
std::string textField);
@RobertLarson
RobertLarson / CellPhoneTextAppImpl.h
Created June 10, 2017 01:21
CellPhoneTextAppImpl.h
#include <string>
#include <vector>
class CellPhoneTextAppImpl
{
public:
virtual void SendTextImpl(std::vector<std::string> recipients,
std::string textField) = 0;
};
@RobertLarson
RobertLarson / IPhone8TextApp.cpp
Created June 10, 2017 01:20
IPhone8TextApp.cpp
#include "IPhone8TextApp.h"
#include <iostream>
IPhone8TextApp::IPhone8TextApp(CellPhoneTextAppImpl * impl)
: CellPhoneTextApp(impl) {
}