summaryrefslogtreecommitdiff
path: root/project2/common/sourceObject.cpp
blob: a5736bab444bc4492fd7cc5f406a5f8a0aff5e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "sourceObject.h"

unsigned int SourceObject::loadOrder = 1;

SourceObject::SourceObject(const xmlpp::Element * p) :
	name(p ? p->get_attribute_value("name") : "anon"),
	order(loadOrder++)
{
}

SourceObject::SourceObject(const std::string & n) :
	name(n),
	order(loadOrder++)
{
}

SourceObject::~SourceObject()
{
}