Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

exotkParameter_String.cxx

Go to the documentation of this file.
00001 
00002 //   exotkParameter_String.cxx
00004 //    Copyright (C) 2001  Stephane Routelous
00005 //
00006 //    This file is part of exoTK.
00007 //
00008 //    exoTK is free software; you can redistribute it and/or modify
00009 //    it under the terms of the GNU General Public License as published by
00010 //    the Free Software Foundation; either version 2 of the License, or
00011 //    (at your option) any later version.
00012 //
00013 //    exoTK is distributed in the hope that it will be useful,
00014 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 //    GNU General Public License for more details.
00017 //
00018 //    You should have received a copy of the GNU General Public License
00019 //    along with exoTK; if not, write to the Free Software
00020 //    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00029 #include <exotkParameter_String.hxx>
00030 
00031 //
00032 IMPLEMENT_STANDARD_HANDLE(exotkParameter_String,exotkParameter_Root)
00033 IMPLEMENT_STANDARD_RTTI(exotkParameter_String,exotkParameter_Root)
00034 //
00035 // Foreach ancestors, we add a IMPLEMENT_STANDARD_SUPERTYPE and 
00036 // a IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY macro.
00037 // We must respect the order: from the direct ancestor class
00038 // to the base class.
00039 //
00040 
00041 IMPLEMENT_STANDARD_TYPE(exotkParameter_String)
00042 IMPLEMENT_STANDARD_SUPERTYPE(exotkParameter_Root) 
00043 IMPLEMENT_STANDARD_SUPERTYPE(MMgt_TShared) 
00044 IMPLEMENT_STANDARD_SUPERTYPE(Standard_Transient)
00045 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY()
00046 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(exotkParameter_Root)
00047 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(MMgt_TShared)
00048 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(Standard_Transient)
00049 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_END()
00050 IMPLEMENT_STANDARD_TYPE_END(exotkParameter_String)
00051 
00052 
00053 //==================================================================================
00054 // Function name        : exotkParameter_String::exotkParameter_String
00055 //==================================================================================
00056 // Written by       : Stephane Routelous - 08/03/2001 01:03:45
00057 // Description      : 
00058 // Return type          : 
00059 //==================================================================================
00060 // Argument         : const TCollection_AsciiString aValue
00061 exotkParameter_String::exotkParameter_String(const TCollection_AsciiString aValue)
00062 :myValue(aValue)
00063 {
00064         myType = exotkParameter_Type_String;
00065 }
00066 
00067 
00068 //==================================================================================
00069 // Function name        : exotkParameter_String::~exotkParameter_String
00070 //==================================================================================
00071 // Written by       : Stephane Routelous - 08/03/2001 01:03:46
00072 // Description      : 
00073 // Return type          : 
00074 //==================================================================================
00075 exotkParameter_String::~exotkParameter_String()
00076 {
00077 
00078 }
00079 
00080 void exotkParameter_String::DeepCopy(const Handle_exotkParameter_Root &aParameterToCopy)
00081 {
00082         exotkParameter_Root::DeepCopy(aParameterToCopy);
00083         if ( aParameterToCopy->IsKind(STANDARD_TYPE(exotkParameter_String)) )
00084         {
00085                 Handle_exotkParameter_String theStringToCopy = Handle_exotkParameter_String::DownCast(aParameterToCopy);
00086                 myValue = theStringToCopy->Value();
00087         }
00088 }
00089 
00090 
00091 //==================================================================================
00092 // Function name        : exotkParameter_String::SetValue
00093 //==================================================================================
00094 // Written by       : Stephane Routelous - 08/03/2001 01:03:50
00095 // Description      : 
00096 // Return type          : void 
00097 //==================================================================================
00098 // Argument         : const TCollection_AsciiString aValue
00099 void exotkParameter_String::SetValue(const TCollection_AsciiString aValue)
00100 {
00101         myValue = aValue;
00102 }
00103 
00104 //==================================================================================
00105 // Function name        : exotkParameter_String::Value
00106 //==================================================================================
00107 // Written by       : Stephane Routelous - 08/03/2001 01:03:52
00108 // Description      : 
00109 // Return type          : TCollection_AsciiString 
00110 //==================================================================================
00111 TCollection_AsciiString exotkParameter_String::Value() const
00112 {
00113         return myValue;
00114 }
00115 
00116 //==================================================================================
00117 // Function name        : exotkParameter_String::SetParameterAsString
00118 //==================================================================================
00119 // Written by       : Stephane Routelous - 08/03/2001 01:03:54
00120 // Description      : 
00121 // Return type          : Standard_Boolean 
00122 //==================================================================================
00123 // Argument         : const TCollection_AsciiString& aParameter
00124 Standard_Boolean exotkParameter_String::SetParameterAsString(const TCollection_AsciiString& aParameter)
00125 {
00126         myValue = aParameter;
00127         return Standard_True;
00128 }
00129 
00130 //==================================================================================
00131 // Function name        : exotkParameter_String::ParameterAsString
00132 //==================================================================================
00133 // Written by       : Stephane Routelous - 08/03/2001 01:03:56
00134 // Description      : 
00135 // Return type          : TCollection_AsciiString 
00136 //==================================================================================
00137 TCollection_AsciiString exotkParameter_String::ParameterAsString() const
00138 {
00139         return TCollection_AsciiString(myValue);
00140 }

Generated on Wed Jan 23 12:16:43 2002 for exotk by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001