class Me {
public:
enum Language {
kCCpp = 0, // C/C++
kPowershell, // Powershell
kDirectX, // DirectX(HLSL)
};
void Gulp( MonsterEnergy&& m ) {
m_stomach.push( std::move( m ) );
}
void DoCode( Language l ) {
if ( m_stomach.empty() ) {
throw OutOfEnergyException( "Unable to code." );
}
switch ( l ) {
case kCCpp:
std::cout << "C++11 FTW" << std::endl;
break;
case kPowershell:
std::cout << "|||||||||||||" << std::endl;
break;
case kDirectX:
std::cout << "dx12??? MOAR FPS!!1!" << std::endl;
}
m_stomach.pop();
}
private:
std::queue< MonsterEnergy > m_stomach;
};