//DRS_Setting.cpp
#include <stdlib.h>

#include "drs/drs_type.h"
#include "drs/drs_setting.h"

DRS_Setting::DRS_Setting( char const *sNew)
{
    sContents[0] = 0;
    AssertAddition((const byte*)sNew);
    strcpy( (char*) sContents, sNew);
}

void DRS_Setting::operator+=( byte const *s)
{
    AssertAddition( s);
    std::strcat( (char*) sContents, (const char*) s);
}
void DRS_Setting::operator+=( uint i)
{
    byte s[18];
    itoa( i, (char*) s, 10);
    AssertAddition( s);
    std::strcat( (char*) sContents, (const char*) s);
}
