]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/engine/Any.hxx
Salome HOME
Use pyobj type in optimizer loop.
[modules/yacs.git] / src / engine / Any.hxx
index 05a9ba54427cfe818185720c669999b6846927f4..f8d1e672fa6233d6b5b61e69aac1e5df0bae5ba2 100644 (file)
@@ -111,6 +111,7 @@ namespace YACS
     class YACSLIBENGINE_EXPORT AtomAny : public Any
     {
       friend class TypeCode;
+      friend class TypeCodeObjref;
 
       union ValueContainer
       {
@@ -124,6 +125,7 @@ namespace YACS
       template<class T>
       static AtomAny *New(T val) { return new AtomAny(val); }
       static AtomAny *New(char *val, Deallocator dealloc);
+      static AtomAny *New(const std::string& val, TypeCode *type);
       AnyPtr operator[](int i) const throw(Exception);
       AnyPtr operator[](const char *key) const throw(Exception);
       bool operator ==(const Any& other) const;
@@ -145,6 +147,7 @@ namespace YACS
       AtomAny(double val);
       AtomAny(const char *val);
       AtomAny(const std::string& val);
+      AtomAny(const std::string& val, TypeCode* type);
       AtomAny(const AtomAny& other);
       AtomAny(char *data, TypeCode* type);
       AtomAny(char *val, Deallocator deAlloc);