Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / SrgsCompiler / SemanticTag.cs / 1 / SemanticTag.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Runtime.InteropServices; using System.Speech.Internal.SrgsParser; namespace System.Speech.Internal.SrgsCompiler { ////// Summary description for Rule. /// internal sealed class SemanticTag : ParseElement, ISemanticTag { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal SemanticTag (ParseElement parent, Backend backend) : base (parent._rule) { } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods /// TODOC <_include file='doc\Tag.uex' path='docs/doc[@for="Tag.RepeatProbability"]/*' /> // The probability that this item will be repeated. void ISemanticTag.Content (IElement parentElement, string sTag, int iLine) { //Return if the Tag content is empty sTag = sTag.Trim (Helpers._achTrimChars); if (string.IsNullOrEmpty (sTag)) { return; } // Build semantic properties to attach to epsilon transition. //script _propInfo._ulId = (uint) iLine; _propInfo._comValue = sTag; ParseElementCollection parent = (ParseElementCollection) parentElement; // Attach the semantic properties on the parent element. parent.AddSemanticInterpretationTag (_propInfo); } #endregion //******************************************************************** // // Private Fields // //******************************************************************** #region Private Fields private CfgGrammar.CfgProperty _propInfo = new CfgGrammar.CfgProperty (); #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Runtime.InteropServices; using System.Speech.Internal.SrgsParser; namespace System.Speech.Internal.SrgsCompiler { ////// Summary description for Rule. /// internal sealed class SemanticTag : ParseElement, ISemanticTag { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal SemanticTag (ParseElement parent, Backend backend) : base (parent._rule) { } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods /// TODOC <_include file='doc\Tag.uex' path='docs/doc[@for="Tag.RepeatProbability"]/*' /> // The probability that this item will be repeated. void ISemanticTag.Content (IElement parentElement, string sTag, int iLine) { //Return if the Tag content is empty sTag = sTag.Trim (Helpers._achTrimChars); if (string.IsNullOrEmpty (sTag)) { return; } // Build semantic properties to attach to epsilon transition. //script _propInfo._ulId = (uint) iLine; _propInfo._comValue = sTag; ParseElementCollection parent = (ParseElementCollection) parentElement; // Attach the semantic properties on the parent element. parent.AddSemanticInterpretationTag (_propInfo); } #endregion //******************************************************************** // // Private Fields // //******************************************************************** #region Private Fields private CfgGrammar.CfgProperty _propInfo = new CfgGrammar.CfgProperty (); #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StructuredCompositeActivityDesigner.cs
- DataListItem.cs
- WebEventTraceProvider.cs
- ChannelManager.cs
- MeasureData.cs
- CompositeScriptReference.cs
- XmlObjectSerializerReadContextComplex.cs
- DataSourceXmlElementAttribute.cs
- PipelineDeploymentState.cs
- LayoutDump.cs
- TypeViewSchema.cs
- RepeaterItemEventArgs.cs
- ServiceBusyException.cs
- DiscardableAttribute.cs
- SByteStorage.cs
- XmlValueConverter.cs
- StrongNameSignatureInformation.cs
- ImageClickEventArgs.cs
- PKCS1MaskGenerationMethod.cs
- XmlEntityReference.cs
- EventDescriptor.cs
- CompositeCollection.cs
- FontEmbeddingManager.cs
- HttpDebugHandler.cs
- ConfigUtil.cs
- DialogResultConverter.cs
- ResourceExpressionBuilder.cs
- CalendarDay.cs
- BooleanFunctions.cs
- OSFeature.cs
- AbstractDataSvcMapFileLoader.cs
- UpdateException.cs
- ScriptReferenceEventArgs.cs
- PackWebRequestFactory.cs
- NativeMethodsCLR.cs
- PathParser.cs
- NativeCppClassAttribute.cs
- MediaContext.cs
- OleDbParameter.cs
- AccessViolationException.cs
- ThreadNeutralSemaphore.cs
- PropertyTabAttribute.cs
- MatrixAnimationBase.cs
- ListViewContainer.cs
- ActivityTypeCodeDomSerializer.cs
- LineServicesCallbacks.cs
- FormViewUpdatedEventArgs.cs
- WinInetCache.cs
- Route.cs
- URLString.cs
- GroupBoxAutomationPeer.cs
- UIElementIsland.cs
- HttpResponse.cs
- Baml2006ReaderContext.cs
- linebase.cs
- GridItemPattern.cs
- PropertyKey.cs
- IPEndPoint.cs
- SafeWaitHandle.cs
- DataGridViewColumn.cs
- ConversionHelper.cs
- ResourceDefaultValueAttribute.cs
- InputLangChangeEvent.cs
- EnumType.cs
- ResolveResponseInfo.cs
- HttpCapabilitiesSectionHandler.cs
- XmlAutoDetectWriter.cs
- MobileTemplatedControlDesigner.cs
- PropertyFilterAttribute.cs
- ParserStreamGeometryContext.cs
- RSAPKCS1SignatureDeformatter.cs
- DrawingVisual.cs
- ArrangedElementCollection.cs
- OutputWindow.cs
- EntityCollection.cs
- QilName.cs
- DesigntimeLicenseContextSerializer.cs
- StylusPointPropertyId.cs
- NominalTypeEliminator.cs
- Clipboard.cs
- PropertyHelper.cs
- QueryBranchOp.cs
- RegexCode.cs
- HostedTransportConfigurationBase.cs
- SymLanguageVendor.cs
- LogEntryHeaderSerializer.cs
- XmlDomTextWriter.cs
- CodeAttributeDeclaration.cs
- cookieexception.cs
- TextChange.cs
- SplashScreen.cs
- ExtendedPropertyCollection.cs
- LinkArea.cs
- HotSpot.cs
- BooleanFacetDescriptionElement.cs
- TypeBinaryExpression.cs
- ChangeInterceptorAttribute.cs
- XmlReflectionImporter.cs
- FilteredXmlReader.cs
- ResolvedKeyFrameEntry.cs