1 // $Id: ui_vars_component.cpp,v 1.5 2010/03/02 23:12:32 bobgian Exp $ 2 3 /* 4 * Copyright 2004 Peter Beerli, Mary Kuhner, Jon Yamato and Joseph Felsenstein 5 * 6 * This software is distributed free of charge for non-commercial use 7 * and is copyrighted. Of course, we do not guarantee that the software 8 * works, and are not responsible for any damage you may cause or have. 9 * 10 */ 11 12 #include <cassert> 13 #include <cstddef> // for NULL 14 #include "ui_vars_component.h" 15 16 //------------------------------------------------------------------------------------ 17 UIVarsComponent(UIVars * myUIVars)18UIVarsComponent::UIVarsComponent(UIVars * myUIVars) 19 : m_UIVars(myUIVars) 20 { 21 } 22 ~UIVarsComponent()23UIVarsComponent::~UIVarsComponent() 24 { 25 m_UIVars = NULL; 26 } 27 28 const UIVars & GetConstUIVars() const29UIVarsComponent::GetConstUIVars() const 30 { 31 assert(m_UIVars != NULL); 32 return (*m_UIVars); 33 } 34 35 UIVars & GetUIVars()36UIVarsComponent::GetUIVars() 37 { 38 assert(m_UIVars != NULL); 39 return (*m_UIVars); 40 } 41 42 //____________________________________________________________________________________ 43