973c2be1 |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
d5f74e42 |
5 | // This library is free software; you can redistribute it and/or modify it under |
6 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
7 | // by the Free Software Foundation, with special exception defined in the file |
8 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
9 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
b311480e |
13 | |
7fd59977 |
14 | |
15 | #include <Dico_DictionaryOfInteger.hxx> |
16 | #include <Dico_IteratorOfDictionaryOfInteger.hxx> |
42cf5bc1 |
17 | #include <Interface_InterfaceError.hxx> |
18 | #include <Interface_TypedValue.hxx> |
7fd59977 |
19 | #include <OSD_Path.hxx> |
42cf5bc1 |
20 | #include <Standard_Transient.hxx> |
21 | #include <Standard_Type.hxx> |
22 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
23 | |
42cf5bc1 |
24 | #include <stdio.h> |
92efcf78 |
25 | IMPLEMENT_STANDARD_RTTIEXT(Interface_TypedValue,MoniTool_TypedValue) |
26 | |
7fd59977 |
27 | //static char defmess[30]; svv #2 |
7fd59977 |
28 | // Fonctions Satisfies offertes en standard ... |
7fd59977 |
29 | // svv#2 |
30 | //static Standard_Boolean StaticPath(const Handle(TCollection_HAsciiString)& val) |
31 | //{ |
32 | // OSD_Path apath; |
33 | // return apath.IsValid (TCollection_AsciiString(val->ToCString())); |
34 | //} |
b311480e |
35 | Interface_TypedValue::Interface_TypedValue |
7fd59977 |
36 | (const Standard_CString name, |
37 | const Interface_ParamType type, const Standard_CString init) |
38 | : MoniTool_TypedValue (name, |
39 | Interface_TypedValue::ParamTypeToValueType(type), |
40 | init) { } |
41 | |
42 | Interface_ParamType Interface_TypedValue::Type () const |
43 | { return ValueTypeToParamType (ValueType()); } |
44 | |
45 | MoniTool_ValueType Interface_TypedValue::ParamTypeToValueType |
46 | (const Interface_ParamType type) |
47 | { return (MoniTool_ValueType) type; } // meme valeurs |
48 | |
49 | Interface_ParamType Interface_TypedValue::ValueTypeToParamType |
50 | (const MoniTool_ValueType type) |
51 | { return (Interface_ParamType) type; } // meme valeurs |