source: src/base/object.cpp@ 66f24d

Last change on this file since 66f24d was 48b662, checked in by Olaf Lenz <olenz@…>, 14 years ago

Moved files in scafacos_fcs one level up.

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

  • Property mode set to 100644
File size: 566 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().RegisterObject(this);
24 }else
25 assert(0 == "This object has already been registered.");
26}
27
28void Object::ObjectInit()
29{
30 MG::GetFactory().RegisterObject(this);
31}
Note: See TracBrowser for help on using the repository browser.