// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
#include <vector>
#include <string>
#include <cstdlib>

using namespace std;

#include "S.h"

S *S::_instance = NULL;

S::S()
{
   _list = new vector<string>();
}

S *S::Instance()
{
   if(_instance == NULL)
   {
      _instance = new S();
   }
   return _instance;
}

void S::Add(string s)
{
   _list->push_back(s);
}

vector<string> *S::List()
{
   return _list;
}
