- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Interfaces/Variable.cpp

    00001
    00002 //
    00003 // Copyright (c) 2004           Model-based Embedded and Robotic Systems Group
    00004 // All Rights Reserved          Massachusetts Institute of Technology
    00005 //
    00006 // This software is provided as is. Model-based Embedded and Robotic Systems
    00007 // (MERS) group does not assume any responsibility.
    00008 //
    00009 // Organization:        Model-based Embedded and Robotic Systems Group
    00010 //                                      Massachusetts Institute of Technology
    00011 //
    00013
    00014 #include "Variable.h"
    00015
    00016 #include <Mers/Utils/Lang/CharUtils.h>
    00017
    00019
    00020 using namespace Mers::Interfaces;
    00021 using Mers::Utils::Lang::CharUtils;
    00022
    00024
    00025 Variable::Variable(const char * name)
    00026 {
    00027         mName = CharUtils::strdupnew(name);
    00028 }
    00029
    00031
    00032 Variable::~Variable()
    00033 {
    00034         delete[] mName;
    00035 }
    00036
    00038
    00039 const char * Variable::getName() const
    00040 {
    00041         return mName;
    00042 }
    00043
    00045