mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
20 lines
442 B
C++
20 lines
442 B
C++
#include "OpenWound.h"
|
|
#include <sstream>
|
|
|
|
using namespace ace::medical;
|
|
|
|
injuries::OpenWound::OpenWound(double anID, double aBodyPart, double bloodloss) : classID(anID), bodyPart(aBodyPart), bloodlossRate(bloodloss)
|
|
{
|
|
}
|
|
|
|
injuries::OpenWound::~OpenWound()
|
|
{
|
|
}
|
|
|
|
std::string injuries::OpenWound::AsString()
|
|
{
|
|
std::stringstream stream;
|
|
stream << classID << "," << bodyPart << "," << 1 << "," << bloodlossRate;
|
|
return stream.str();
|
|
}
|