source: src/base/object.cpp@ 06e153

Last change on this file since 06e153 was 01be70, checked in by Julian Iseringhausen <isering@…>, 14 years ago

Merge remote branch 'heber/Bugfixes_Tremolo_implementation'

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1309 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 577 bytes
Line 
1/**
2 * @file object.cpp
3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
4 * @date Mon Apr 18 12:21:55 2011
5 *
6 * @brief Source file for the class VMG::Object.
7 *
8 */
9
10#ifdef HAVE_CONFIG_H
11#include <config.h>
12#endif
13
14#include "base/object.hpp"
15#include "mg.hpp"
16
17using namespace VMG;
18
19void Object::Register(std::string name_)
20{
21 if (!registered) {
22 name = name_;
23 MG::GetFactory().Register(this);
24 registered = true;
25 }else
26 assert(0 == "This object has already been registered.");
27}
28
29void Object::ObjectInit()
30{
31 MG::GetFactory().Register(this);
32}
Note: See TracBrowser for help on using the repository browser.