コード例 #1
0
        /// <summary>
        ///Construct a Query for an existing Pool. Default values set for an unbounded time query on existing objects.
        ///
        ///@param	p	The existing Pool object.
        /// </summary>
        public FPQuery(FPPool p)
        {
            thePool       = p;
            theQuery      = 0;
            theExpression = Native.QueryExpression.Create();

            // Set default values - unbounded query on existing objects
            Native.QueryExpression.SetStartTime(theExpression, 0);
            Native.QueryExpression.SetEndTime(theExpression, (FPLong)(-1));
            Native.QueryExpression.SetType(theExpression, (FPInt)FPMisc.QUERY_TYPE_EXISTING);
        }
コード例 #2
0
        internal FPRetentionClassCollection(FPPool p)
        {
            RCContext = Native.Pool.GetRetentionClassContext(p);

            FPRetentionClassRef c = Native.RetentionClassContext.GetFirstClass(RCContext);

            while (c != 0)
            {
                Add(new FPRetentionClass(c));
                c = Native.RetentionClassContext.GetNextClass(RCContext);
            }
        }
コード例 #3
0
ファイル: FPClip.cs プロジェクト: Quadrotech/EMC.Centera.SDK
 /// <summary>
 ///Create a new clip in the supplied Pool by reading a raw clip from a stream.
 ///See API Guide: FPClip_RawOpen
 ///
 ///@param inPool	The Pool to create the Clip in.
 ///@param inClipID	The ID of the Clip being read - must match the new Clip ID.
 ///@param inStream	The stream to read the clip from.
 ///@param inOptions	A suitable option.
 /// </summary>
 public FPClip(FPPool inPool, string inClipID, FPStream inStream, long inOptions)
 {
     _thePool = inPool;
     _theClip = Native.Clip.RawOpen(_thePool, inClipID, inStream, (FPLong)inOptions);
     AddObject(_theClip, this);
 }
コード例 #4
0
ファイル: FPClip.cs プロジェクト: Quadrotech/EMC.Centera.SDK
 /// <summary>
 ///Create a Clip object by opening an existing clip in the supplied Pool.
 ///See API Guide: FPClip_Open
 ///
 ///@param inPool	The Pool containing the Clip.
 ///@param inClipID	The ID of the clip to be opened.
 ///@param inOpenMode	The mode to open the clip in (Flat or Tree).
 /// </summary>
 public FPClip(FPPool inPool, string inClipID, int inOpenMode)
 {
     _thePool = inPool;
     _theClip = Native.Clip.Open(inPool, inClipID, (FPInt)inOpenMode);
     AddObject(_theClip, this);
 }
コード例 #5
0
ファイル: FPClip.cs プロジェクト: Quadrotech/EMC.Centera.SDK
 /// <summary>
 ///Create a new Clip object in the supplied Pool.
 ///See API Guide: FPClip_Create
 ///
 ///@param inPool	The Pool to create the Clip in.
 ///@param inName	The name of the clip.
 ///@return The int value of the option.
 /// </summary>
 public FPClip(FPPool inPool, string inName)
 {
     _thePool = inPool;
     _theClip = Native.Clip.Create(_thePool, inName);
     AddObject(_theClip, this);
 }
コード例 #6
0
ファイル: FPClip.cs プロジェクト: Quadrotech/EMC.Centera.SDK
 /// <summary>
 ///Create a Clip using an existing FPClipRef.
 ///
 ///@param c	The FPClipRef.
 /// </summary>
 internal FPClip(FPClipRef c)
 {
     _theClip = c;
     _thePool = Native.Clip.GetPoolRef(c);
     AddObject(_theClip, this);
 }
コード例 #7
0
ファイル: FPClip.cs プロジェクト: eddiepaz/EMC.Centera.SDK
 /// <summary>
 ///Create a new Clip object in the supplied Pool.
 ///See API Guide: FPClip_Create
 ///
 ///@param inPool  The Pool to create the Clip in.
 ///@param inName  The name of the clip.
 ///@return The int value of the option.
 /// </summary>
 public FPClip(FPPool inPool, string inName)
 {
     this.thePool = inPool;
     this.theClip = Native.Clip.Create(this.thePool, inName);
     this.AddObject(this.theClip, this);
 }
コード例 #8
0
ファイル: FPClip.cs プロジェクト: eddiepaz/EMC.Centera.SDK
 /// <summary>
 ///Create a Clip using an existing FPClipRef.
 ///
 ///@param c The FPClipRef.
 /// </summary>
 internal FPClip(FPClipRef c)
 {
     this.theClip = c;
     this.thePool = Native.Clip.GetPoolRef(c);
     this.AddObject(this.theClip, this);
 }