Ejemplo n.º 1
0
 public static BitcoinAcct dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.BitcoinAcct_dynamic_cast(Storable.getCPtr(pObject));
     BitcoinAcct ret = (cPtr == IntPtr.Zero) ? null : new BitcoinAcct(cPtr, false);
     if (otapiPINVOKE.SWIGPendingException.Pending) throw otapiPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
        public new static WalletData ot_dynamic_cast(Storable pObject)
        {
            global::System.IntPtr cPtr = otapiPINVOKE.WalletData_ot_dynamic_cast(Storable.getCPtr(pObject));
            WalletData            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new WalletData(cPtr, false);

            return(ret);
        }
Ejemplo n.º 3
0
 public static WalletData dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.WalletData_dynamic_cast(Storable.getCPtr(pObject));
     WalletData ret = (cPtr == IntPtr.Zero) ? null : new WalletData(cPtr, false);
     if (otapiPINVOKE.SWIGPendingException.Pending) throw otapiPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Ejemplo n.º 4
0
 public static AddressBook dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.AddressBook_dynamic_cast(Storable.getCPtr(pObject));
     AddressBook ret = (cPtr == IntPtr.Zero) ? null : new AddressBook(cPtr, false);
     if (otapiPINVOKE.SWIGPendingException.Pending) throw otapiPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Ejemplo n.º 5
0
    public new static BitcoinServer ot_dynamic_cast(Storable pObject)
    {
        IntPtr        cPtr = otapiPINVOKE.BitcoinServer_ot_dynamic_cast(Storable.getCPtr(pObject));
        BitcoinServer ret  = (cPtr == IntPtr.Zero) ? null : new BitcoinServer(cPtr, false);

        return(ret);
    }
Ejemplo n.º 6
0
    public new static ContactAcct ot_dynamic_cast(Storable pObject)
    {
        IntPtr      cPtr = otapiPINVOKE.ContactAcct_ot_dynamic_cast(Storable.getCPtr(pObject));
        ContactAcct ret  = (cPtr == IntPtr.Zero) ? null : new ContactAcct(cPtr, false);

        return(ret);
    }
Ejemplo n.º 7
0
 public static ServerInfo dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.ServerInfo_dynamic_cast(Storable.getCPtr(pObject));
     ServerInfo ret = (cPtr == IntPtr.Zero) ? null : new ServerInfo(cPtr, false);
     if (otapiPINVOKE.SWIGPendingException.Pending) throw otapiPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Ejemplo n.º 8
0
        public AudioPlayerModule() : base("/audioplayer/{Uuid}")
        {
            Post["/upload"] = parameters =>
            {
                if (!Storable.TryGet(parameters.Uuid, out Instrument instrument))
                {
                    return(new NotFoundResponse());
                }
                var audioPlayer = (AudioPlayer)instrument;

                var file        = Request.Files.ToList()[0];
                var filename    = file.Name;
                var inputStream = file.Value;
                var fileStream  = File.Create($"./{parameters.Uuid}-{filename}");
                inputStream.CopyTo(fileStream);
                fileStream.Close();

                audioPlayer.SetFile($"./{parameters.Uuid}-{filename}");
                return(new Response());
            };
            Post["/play"] = parameters =>
            {
                if (!Storable.TryGet(parameters.Uuid, out AudioPlayer audioPlayer))
                {
                    return(new NotFoundResponse());
                }
                audioPlayer.Play();
                return(new Response());
            };
        }
Ejemplo n.º 9
0
        public new static MarketList ot_dynamic_cast(Storable pObject)
        {
            global::System.IntPtr cPtr = otapiPINVOKE.MarketList_ot_dynamic_cast(Storable.getCPtr(pObject));
            MarketList            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new MarketList(cPtr, false);

            return(ret);
        }
Ejemplo n.º 10
0
    public new static Blob ot_dynamic_cast(Storable pObject)
    {
        IntPtr cPtr = otapiPINVOKE.Blob_ot_dynamic_cast(Storable.getCPtr(pObject));
        Blob   ret  = (cPtr == IntPtr.Zero) ? null : new Blob(cPtr, false);

        return(ret);
    }
Ejemplo n.º 11
0
        /// <summary>
        /// <see cref="ViewModelCollectionBase{T}.LoadCollection"/>
        /// </summary>
        public override void LoadCollection()
        {
            // Load the data out of CSV storage initially
            var storage = new Storable <MetroLineDetailsReader>(new FileStorageMedium("Resources/MetroLines.csv"));

            storage.Load().Serializer.Data.ForEach((v) => Collection.Add((MetroLineDetailsBindable)v));
        }
Ejemplo n.º 12
0
        public new static BitcoinAcct ot_dynamic_cast(Storable pObject)
        {
            global::System.IntPtr cPtr = otapiPINVOKE.BitcoinAcct_ot_dynamic_cast(Storable.getCPtr(pObject));
            BitcoinAcct           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new BitcoinAcct(cPtr, false);

            return(ret);
        }
Ejemplo n.º 13
0
        public void TestStorable()
        {
            var storage = new Mock <IStorageMedium>(MockBehavior.Strict);

            var storable = new Storable <MetroLineJSONSerializationStrategy>(storage.Object);

            storable.Serializer.Source = new MetroLineDetails("Inland Empire Line", Colors.Blue, 'A', "LA Union Station", "San Bernardino", true, true, 1969, LineType.NorthSouth, true);
            storable.Save();
        }
Ejemplo n.º 14
0
        public void AddExistingItemToStoreable()
        {
            IStoreable addStorable = new Storable();

            addStorable.Id = 1;
            RepositoryImplementation <IStoreable> ri = new RepositoryImplementation <IStoreable>();

            ri.Save(addStorable);
            ri.Save(addStorable);
        }
Ejemplo n.º 15
0
        public static bool StoreObject(Storable theContents, string strFolder)
        {
            bool ret = otapiPINVOKE.StoreObject__SWIG_3(Storable.getCPtr(theContents), strFolder);

            if (otapiPINVOKE.SWIGPendingException.Pending)
            {
                throw otapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 16
0
        public bool StoreObject(Storable theContents, string strFolder, string oneStr, string twoStr)
        {
            bool ret = otapiPINVOKE.Storage_StoreObject__SWIG_1(swigCPtr, Storable.getCPtr(theContents), strFolder, oneStr, twoStr);

            if (otapiPINVOKE.SWIGPendingException.Pending)
            {
                throw otapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 17
0
        public static void addStorable(string name, Storable item)
        {
            if (m_settings == null)
            {
                Debug.Assert(false, "Try to use uninitialized settings");
                return;
            }

            m_settings.addStorable(name, item);
        }
Ejemplo n.º 18
0
        public static string EncodeObject(Storable theContents)
        {
            string ret = otapiPINVOKE.EncodeObject(Storable.getCPtr(theContents));

            if (otapiPINVOKE.SWIGPendingException.Pending)
            {
                throw otapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 19
0
    public IEnumerator DoInteraction(Unit unit)
    {
        if (state != State.Building)
        {
            yield return(null);

            yield break;
        }

        yield return(unit.navAgent.MoveToInteractableSeq(GetComponent <Interactable>()));

        if (buildMaterials.Count < data.recipe.Length)
        {
            ItemData[] missingIngredients = GetMissingIngredients();
            for (int i = 0; i < missingIngredients.Length; i++)
            {
                Item foundItem = Item.FindItem(missingIngredients[i]);
                if (foundItem != null)
                {
                    Storable storable = foundItem.GetComponent <Storable>();
                    yield return(storable.PickUpInteraction(unit));

                    yield return(unit.navAgent.MoveToInteractableSeq(GetComponent <Interactable>()));

                    if (state != State.Normal)
                    {
                        unit.inventory.Withdraw(storable);
                        AddBuildMaterial(foundItem);
                    }

                    yield break;
                }
            }
        }
        else
        {
            CompleteBuilding();
        }
        yield return(new WaitForSeconds(2f));

        // Keep building the other buildings nearby
        Collider[] nearby = Physics.OverlapSphere(unit.transform.position, 10f);
        if (nearby != null)
        {
            for (int i = 0; i < nearby.Length; i++)
            {
                Building nearbyBuilding = nearby[i].GetComponent <Building>();
                if (nearbyBuilding && nearbyBuilding.state == State.Building)
                {
                    yield return(nearbyBuilding.DoInteraction(unit));
                }
            }
        }
        yield break;
    }
Ejemplo n.º 20
0
        public static Storable DecodeObject(StoredObjectType theObjectType, string strInput)
        {
            global::System.IntPtr cPtr = otapiPINVOKE.DecodeObject((int)theObjectType, strInput);
            Storable ret = (cPtr == global::System.IntPtr.Zero) ? null : new Storable(cPtr, true);

            if (otapiPINVOKE.SWIGPendingException.Pending)
            {
                throw otapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 21
0
        public override QueryDTO Execute(QueryParameters parameters)
        {
            IQueryElement classNameElement = Element(ElementType.CLASS_NAME);
            QueryDTO      classResult      = classNameElement.Execute(parameters);

            if (classResult.Result != null)
            {
                return(classResult);
            }
            var objectClass = classResult.QueryClass;

            if (objectClass.Interface)
            {
                return(new QueryDTO
                {
                    Result = new DTOQueryResult()
                    {
                        QueryResultType = ResultType.StringResult,
                        StringOutput = cantCreateObjectLabel
                    }
                });
            }
            List <Property> propeteries = parameters.Database.Schema.ClassProperties(objectClass);

            var oid     = new Oid(Guid.NewGuid(), parameters.Database.DatabaseId.Dli);
            var toStore = new Storable {
                Oid = oid
            };

            foreach (var attrToSet in AllElements(ElementType.OBJECT_INITIALIZATION_ELEMENT))
            {
                parameters.Subquery = new QueryDTO {
                    Value = toStore, AdditionalValue = propeteries
                };

                var attributeResult = attrToSet.Execute(parameters);
                if (attributeResult.Result != null)
                {
                    return(attributeResult);
                }
            }

            parameters.Storage.Save(parameters.Database.DatabaseId, toStore);
            parameters.Log("New object saved with id: " + oid, MessageLevel.QueryExecution);
            return(new QueryDTO()
            {
                Result = new DTOQueryResult
                {
                    NextResult = null,
                    QueryResultType = ResultType.StringResult,
                    StringOutput = "New object saved with id: " + oid
                }
            });
        }
Ejemplo n.º 22
0
        public static Storable QueryObject(StoredObjectType theObjectType, string strFolder, string oneStr)
        {
            global::System.IntPtr cPtr = otapiPINVOKE.QueryObject__SWIG_2((int)theObjectType, strFolder, oneStr);
            Storable ret = (cPtr == global::System.IntPtr.Zero) ? null : new Storable(cPtr, true);

            if (otapiPINVOKE.SWIGPendingException.Pending)
            {
                throw otapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 23
0
    public Storable QueryObject(StoredObjectType theObjectType, string strFolder, string oneStr, string twoStr)
    {
        IntPtr   cPtr = otapiPINVOKE.Storage_QueryObject__SWIG_1(swigCPtr, (int)theObjectType, strFolder, oneStr, twoStr);
        Storable ret  = (cPtr == IntPtr.Zero) ? null : new Storable(cPtr, true);

        if (otapiPINVOKE.SWIGPendingException.Pending)
        {
            throw otapiPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 24
0
    public Storable DecodeObject(StoredObjectType theObjectType, string strInput)
    {
        IntPtr   cPtr = otapiPINVOKE.Storage_DecodeObject(swigCPtr, (int)theObjectType, strInput);
        Storable ret  = (cPtr == IntPtr.Zero) ? null : new Storable(cPtr, true);

        if (otapiPINVOKE.SWIGPendingException.Pending)
        {
            throw otapiPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 25
0
        /// <summary>
        /// Loads a storable from the server.
        /// </summary>
        /// <param name="identifier"></param>
        /// <returns></returns>
        public async Task <IStorable> LoadStorableAsync(StorableIdentifier identifier)
        {
            WebResponse response = await callLoadAsync(identifier).ConfigureAwait(false);

            Storable storable = new Storable
            {
                DataStream = response.GetResponseStream(),
                Metadata   = response.Headers["Metadata"]
            };

            return(storable);
        }
Ejemplo n.º 26
0
 public bool AddStorable(Storable stor)
 {
     if (storables.Count < capacity)
     {
         storables.Add(stor);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 27
0
 public bool RemoveStorable(Storable stor)
 {
     if (stor != null)
     {
         storables.Remove(stor);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 28
0
 ItemSlot TryIncrementExistingItem(Storable storable)
 {
     if (storable.Stackable)
     {
         var existingItemStack = itemSlots.FirstOrDefault(i => i.Storable?.Id == storable.Id);
         if (existingItemStack != null)
         {
             existingItemStack.Quantity++;
             return(existingItemStack);
         }
     }
     return(null);
 }
Ejemplo n.º 29
0
 public bool TransferStorable(Storable stor, Inventory to)
 {
     if (stor != null && to.GetStorables().Count < to.capacity)
     {
         to.AddStorable(stor);
         storables.Remove(stor);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 30
0
        public void AddNewItemToStoreable()
        {
            IStoreable addStorable = new Storable();

            addStorable.Id = 1;
            RepositoryImplementation <IStoreable> ri = new RepositoryImplementation <IStoreable>();

            ri.Save(addStorable);
            Assert.IsTrue(1 == (int)addStorable.Id);
            IStoreable retStorable = ri.FindById(addStorable.Id);

            Assert.IsTrue(retStorable.Id == addStorable.Id);
        }
Ejemplo n.º 31
0
        public void readStorable(Storable newObject, string name, out bool ok)
        {
            XmlNodeList elems = m_mainDoc.GetElementsByTagName(name);

            ok = elems.Count != 0;

            if (elems.Count == 0)
            {
                return;
            }
            else
            {
                ok = (ok & newObject.convertFromNode(elems[0]));
            }
        }
Ejemplo n.º 32
0
        public static Substance RecallSubstance(SerializationInfo info)
        {
            bool      isComposite = (bool)info.GetValue("IsCompositeSubstance", typeof(bool));
            Substance s;

            if (isComposite)
            {
                s = Storable.RecallStorableObject(info, "Substance", typeof(CompositeSubstance)) as CompositeSubstance;
            }
            else
            {
                s = Substance.RecallSubstance(info, "SubstanceName");
            }
            return(s);
        }
Ejemplo n.º 33
0
        public void GetAllStorableItem()
        {
            IStoreable addStorable = new Storable();

            addStorable.Id = 1;
            RepositoryImplementation <IStoreable> ri = new RepositoryImplementation <IStoreable>();

            ri.Save(addStorable);
            addStorable.Id = 2;
            ri.Save(addStorable);
            addStorable.Id = 3;
            ri.Save(addStorable);

            List <IStoreable> allStore = ri.All().ToList();

            Assert.IsTrue(allStore.Count == 3);
        }
Ejemplo n.º 34
0
        public void GetStorableItemByInvalidId()
        {
            IStoreable addStorable = new Storable();

            addStorable.Id = 1;
            RepositoryImplementation <IStoreable> ri = new RepositoryImplementation <IStoreable>();

            ri.Save(addStorable);
            addStorable.Id = 2;
            ri.Save(addStorable);
            addStorable.Id = 3;
            ri.Save(addStorable);

            IStoreable retVal = ri.FindById(4);

            Assert.IsTrue((int)retVal.Id == 4);
        }
Ejemplo n.º 35
0
 public static new ServerInfo ot_dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.ServerInfo_ot_dynamic_cast(Storable.getCPtr(pObject));
     ServerInfo ret = (cPtr == IntPtr.Zero) ? null : new ServerInfo(cPtr, false);
     return ret;
 }
Ejemplo n.º 36
0
 public static bool StoreObject(Storable theContents, string strFolder)
 {
     bool ret = otapiPINVOKE.StoreObject__SWIG_3(Storable.getCPtr(theContents), strFolder);
     if (otapiPINVOKE.SWIGPendingException.Pending) throw otapiPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Ejemplo n.º 37
0
 public static string EncodeObject(Storable theContents)
 {
     string ret = otapiPINVOKE.EncodeObject(Storable.getCPtr(theContents));
     if (otapiPINVOKE.SWIGPendingException.Pending) throw otapiPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Ejemplo n.º 38
0
 public static new RippleServer ot_dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.RippleServer_ot_dynamic_cast(Storable.getCPtr(pObject));
     RippleServer ret = (cPtr == IntPtr.Zero) ? null : new RippleServer(cPtr, false);
     return ret;
 }
Ejemplo n.º 39
0
 public static new TradeListMarket ot_dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.TradeListMarket_ot_dynamic_cast(Storable.getCPtr(pObject));
     TradeListMarket ret = (cPtr == IntPtr.Zero) ? null : new TradeListMarket(cPtr, false);
     return ret;
 }
 public new static OfferDataNym ot_dynamic_cast(Storable pObject) {
   global::System.IntPtr cPtr = otapiPINVOKE.OfferDataNym_ot_dynamic_cast(Storable.getCPtr(pObject));
   OfferDataNym ret = (cPtr == global::System.IntPtr.Zero) ? null : new OfferDataNym(cPtr, false);
   return ret;
 }
Ejemplo n.º 41
0
 public static new Displayable ot_dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.Displayable_ot_dynamic_cast(Storable.getCPtr(pObject));
     Displayable ret = (cPtr == IntPtr.Zero) ? null : new Displayable(cPtr, false);
     return ret;
 }
Ejemplo n.º 42
0
 public static new AddressBook ot_dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.AddressBook_ot_dynamic_cast(Storable.getCPtr(pObject));
     AddressBook ret = (cPtr == IntPtr.Zero) ? null : new AddressBook(cPtr, false);
     return ret;
 }
Ejemplo n.º 43
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Storable obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Ejemplo n.º 44
0
 public static new Contact ot_dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.Contact_ot_dynamic_cast(Storable.getCPtr(pObject));
     Contact ret = (cPtr == IntPtr.Zero) ? null : new Contact(cPtr, false);
     return ret;
 }
 public new static TradeDataMarket ot_dynamic_cast(Storable pObject) {
   global::System.IntPtr cPtr = otapiPINVOKE.TradeDataMarket_ot_dynamic_cast(Storable.getCPtr(pObject));
   TradeDataMarket ret = (cPtr == global::System.IntPtr.Zero) ? null : new TradeDataMarket(cPtr, false);
   return ret;
 }
Ejemplo n.º 46
0
 public static new Blob ot_dynamic_cast(Storable pObject)
 {
     global::System.IntPtr cPtr = otapiPINVOKE.Blob_ot_dynamic_cast(Storable.getCPtr(pObject));
     Blob ret = (cPtr == global::System.IntPtr.Zero) ? null : new Blob(cPtr, false);
     return ret;
 }
Ejemplo n.º 47
0
 internal static HandleRef getCPtr(Storable obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Ejemplo n.º 48
0
 public new static MarketData ot_dynamic_cast(Storable pObject) {
   global::System.IntPtr cPtr = otapiPINVOKE.MarketData_ot_dynamic_cast(Storable.getCPtr(pObject));
   MarketData ret = (cPtr == global::System.IntPtr.Zero) ? null : new MarketData(cPtr, false);
   return ret;
 }
Ejemplo n.º 49
0
 public static ContactNym dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.ContactNym_dynamic_cast(Storable.getCPtr(pObject));
     ContactNym ret = (cPtr == IntPtr.Zero) ? null : new ContactNym(cPtr, false);
     if (otapiPINVOKE.SWIGPendingException.Pending) throw otapiPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Ejemplo n.º 50
0
 public new static Server ot_dynamic_cast(Storable pObject) {
   global::System.IntPtr cPtr = otapiPINVOKE.Server_ot_dynamic_cast(Storable.getCPtr(pObject));
   Server ret = (cPtr == global::System.IntPtr.Zero) ? null : new Server(cPtr, false);
   return ret;
 }
Ejemplo n.º 51
0
 public new static Acct ot_dynamic_cast(Storable pObject) {
   global::System.IntPtr cPtr = otapiPINVOKE.Acct_ot_dynamic_cast(Storable.getCPtr(pObject));
   Acct ret = (cPtr == global::System.IntPtr.Zero) ? null : new Acct(cPtr, false);
   return ret;
 }
Ejemplo n.º 52
0
 public bool StoreObject(Storable theContents, string strFolder, string oneStr)
 {
     bool ret = otapiPINVOKE.Storage_StoreObject__SWIG_2(swigCPtr, Storable.getCPtr(theContents), strFolder, oneStr);
     if (otapiPINVOKE.SWIGPendingException.Pending) throw otapiPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Ejemplo n.º 53
0
 public static new BidData ot_dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.BidData_ot_dynamic_cast(Storable.getCPtr(pObject));
     BidData ret = (cPtr == IntPtr.Zero) ? null : new BidData(cPtr, false);
     return ret;
 }
Ejemplo n.º 54
0
 public static new OTDBString ot_dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.OTDBString_ot_dynamic_cast(Storable.getCPtr(pObject));
     OTDBString ret = (cPtr == IntPtr.Zero) ? null : new OTDBString(cPtr, false);
     return ret;
 }
Ejemplo n.º 55
0
 public static new OfferListNym ot_dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.OfferListNym_ot_dynamic_cast(Storable.getCPtr(pObject));
     OfferListNym ret = (cPtr == IntPtr.Zero) ? null : new OfferListNym(cPtr, false);
     return ret;
 }
Ejemplo n.º 56
0
 public static new StringMap ot_dynamic_cast(Storable pObject)
 {
     IntPtr cPtr = otapiPINVOKE.StringMap_ot_dynamic_cast(Storable.getCPtr(pObject));
     StringMap ret = (cPtr == IntPtr.Zero) ? null : new StringMap(cPtr, false);
     return ret;
 }