コード例 #1
0
 /// <summary> Copies data from the "from" Type into the "to" Type.  Either Type may be
 /// a Primitive, Composite, or Varies.  If a Varies is provided, the operation is
 /// performed on the result of calling its getData() method.  A Primitive may be
 /// copied into a Composite, in which case the value is copied into the first
 /// component of the Composite.  A Composite may be copied into a Primitive,
 /// in which case the first component is copied.  Given Composites with different
 /// numbers of components, the first components are copied, up to the length
 /// of the smaller one.
 /// </summary>
 public static void copy(Genetibase.NuGenHL7.model.Type from, Genetibase.NuGenHL7.model.Type to)
 {
     for (int i = 1; i <= NuGenTerser.numComponents(from); i++)
     {
         for (int j = 1; j <= NuGenTerser.numSubComponents(from, i); j++)
         {
             System.String val = NuGenTerser.getPrimitive(from, i, j).Value;
             NuGenTerser.getPrimitive(to, i, j).Value = val;
         }
     }
 }
コード例 #2
0
            public ResultImpl(Message theMessage, System.String[] theLoopPoints, System.Collections.IDictionary theLoopPointNames, System.String[] theFieldPaths, System.Collections.IDictionary theFieldNames, System.String[] theWherePaths, System.String[] theWherePatterns, bool[] theExactMatchFlags)
            {
                myTerser          = new NuGenTerser(theMessage);
                myLoopPoints      = theLoopPoints;
                myIndices         = new int[theLoopPoints.Length];
                myNumEmpty        = new int[theLoopPoints.Length];
                myMaxNumEmpty     = getMaxNumEmpty(theLoopPoints);
                myLoopPointNames  = theLoopPointNames;
                myFieldPaths      = theFieldPaths;
                myValues          = new System.String[theFieldPaths.Length];
                myFieldNames      = theFieldNames;
                myWherePaths      = theWherePaths;
                myWherePatterns   = theWherePatterns;
                myExactMatchFlags = theExactMatchFlags;

                if (theLoopPoints.Length == 0)
                {
                    myNonLoopingQuery = true;                     //if no loops, give ourselves 1 iteration
                }
                else
                {
                    myIndices[myIndices.Length - 1] = -1;                      //start before 1st iteration
                }
            }
コード例 #3
0
			public ResultImpl(Message theMessage, System.String[] theLoopPoints, System.Collections.IDictionary theLoopPointNames, System.String[] theFieldPaths, System.Collections.IDictionary theFieldNames, System.String[] theWherePaths, System.String[] theWherePatterns, bool[] theExactMatchFlags)
			{
				
				myTerser = new NuGenTerser(theMessage);
				myLoopPoints = theLoopPoints;
				myIndices = new int[theLoopPoints.Length];
				myNumEmpty = new int[theLoopPoints.Length];
				myMaxNumEmpty = getMaxNumEmpty(theLoopPoints);
				myLoopPointNames = theLoopPointNames;
				myFieldPaths = theFieldPaths;
				myValues = new System.String[theFieldPaths.Length];
				myFieldNames = theFieldNames;
				myWherePaths = theWherePaths;
				myWherePatterns = theWherePatterns;
				myExactMatchFlags = theExactMatchFlags;
				
				if (theLoopPoints.Length == 0)
				{
					myNonLoopingQuery = true; //if no loops, give ourselves 1 iteration
				}
				else
				{
					myIndices[myIndices.Length - 1] = - 1; //start before 1st iteration
				}
			}
コード例 #4
0
ファイル: NuGenTerser.cs プロジェクト: carlhuth/GenXSource
 private void  InitBlock(NuGenTerser enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
コード例 #5
0
ファイル: NuGenTerser.cs プロジェクト: carlhuth/GenXSource
 public PathSpec(NuGenTerser enclosingInstance)
 {
     InitBlock(enclosingInstance);
 }
コード例 #6
0
			private void  InitBlock(NuGenTerser enclosingInstance)
			{
				this.enclosingInstance = enclosingInstance;
			}
コード例 #7
0
			public PathSpec(NuGenTerser enclosingInstance)
			{
				InitBlock(enclosingInstance);
			}