예제 #1
0
 private static extern int psoFolderCreateObject( 
     IntPtr               folderHandle,
     string               objectName,
     UInt32               nameLengthInBytes,
     ref ObjectDefinition pDefinition,
     ref KeyDefinition    pKey,
     FieldDefinition []     pFields);
예제 #2
0
 private static extern int psoCreateObject(
     IntPtr sessionHandle,
     string objectName,
     UInt32 nameLengthInBytes,
     ref ObjectDefinition definition,
     ref KeyDefinition    key,
     FieldDefinition[]  fields);
예제 #3
0
파일: Session.cs 프로젝트: dprevost/newpso
        // --+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--
        public void CreateObject( String               objectName,
            ref ObjectDefinition definition,
            ref KeyDefinition    key,
            FieldDefinition[]    fields)
        {
            int rc;

            if (handle == (IntPtr)0)
            {
                rc = (int)PhotonErrors.NULL_HANDLE;
                throw new PhotonException(PhotonException.PrepareException("Session.DestroyObject", rc), rc);
            }

            rc = psoCreateObject(handle,
                                 objectName,
                                 (UInt32)objectName.Length,
                                 ref definition,
                                 ref key,
                                 fields );
            if (rc != 0)
            {
                throw new PhotonException(PhotonException.PrepareException(handle, "Session.DestroyObject"), rc);
            }
        }
예제 #4
0
 private static extern int psoQueueDefinition(
     IntPtr objectHandle,
     ref ObjectDefinition definition);
예제 #5
0
 internal static extern int psoFastMapDefinition(
     IntPtr objectHandle,
     ref ObjectDefinition definition);
예제 #6
0
 // --+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--
 public void Definition(ObjectDefinition definition)
 {
 }
예제 #7
0
파일: Session.cs 프로젝트: dprevost/newpso
 // --+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--
 public void CreateObject( String           objectName,
     ObjectDefinition definition)
 {
 }
예제 #8
0
파일: Session.cs 프로젝트: dprevost/newpso
 // --+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--
 public void GetDefinition(String objectName,
     ObjectDefinition definition)
 {
 }
예제 #9
0
 private static extern int psoGetDefinition(
     IntPtr sessionHandle,
     [MarshalAs(UnmanagedType.LPStr)] string objectName,
     UInt32 nameLengthInBytes,
     ref ObjectDefinition definition);
예제 #10
0
파일: Folder.cs 프로젝트: dprevost/newpso
        // --+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--
        public void CreateObject(String               objectName,
            ref ObjectDefinition pDefinition,
            ref KeyDefinition    pKey,
            FieldDefinition []   pFields)
        {
            int rc;

            if (handle == (IntPtr)0)
            {
                rc = (int)PhotonErrors.NULL_HANDLE;
                throw new PhotonException(PhotonException.PrepareException("Folder.CreateObject", rc), rc);
            }

            rc = psoFolderCreateObject(handle,
                                       objectName,
                                       (UInt32)objectName.Length,
                                       ref pDefinition,
                                       ref pKey,
                                       pFields );
            if (rc != 0)
            {
                throw new PhotonException(PhotonException.PrepareException(sessionHandle, "Folder.CreateObject"), rc);
            }
        }