Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages | Examples

vetObject.cpp

Go to the documentation of this file.
00001 
00018 #include "vetObject.h"
00019 
00020 #include <string.h>
00021 
00022 
00029 vetObject::vetObject()
00030  {
00031         f_name = new char[64];
00032         f_description = new char[128];
00033 
00034         setName("Unknown Object");
00035         setDescription("Unknown Object");
00036         setVersion(0.0);
00037  }
00038 
00039 
00043 vetObject::~vetObject()
00044  {
00045         delete []f_name;
00046         delete []f_description;
00047  }
00048 
00056 void vetObject::setName(const char* myName)
00057  {
00058         strncpy(f_name, myName, 64);
00059  }
00060 
00061 
00069 void vetObject::setDescription(const char* myDesc)
00070  {
00071         strncpy(f_description, myDesc, 128);
00072  }
00073 
00081 void vetObject::setVersion(const double myVer)
00082  {
00083         f_version = myVer;
00084  }

Generated on Tue Jan 24 11:59:05 2006 for VETLib by  doxygen 1.4.4