|
iDRS™ SDK 16
|
Interface for CSearchContext wrapper. More...
Go to the source code of this file.
Enumerations | |
| enum | SearchType { SearchNumber = 0 , SearchDate = 1 , SearchText = 2 , SearchRegex = 3 } |
| Types of searches supported. More... | |
| enum | MatchPosition { MatchPositionUp = 1 , MatchPositionDown = 16 , MatchPositionLeft = 64 , MatchPositionRight = 4 , MatchPositionUpLeft = 128 , MatchPositionUpRight = 2 , MatchPositionDownLeft = 32 , MatchPositionDownRight = 8 } |
| Position of a search match in the context of chained searches. More... | |
Functions | |
| enum SearchType | CSearchContext_GetType (const CSearchContext argCSearchContext, idrs_exception *pargException) |
| Gets the context search type. | |
| void | CSearchContext_SetIdentifier (CSearchContext argCSearchContext, const idrs_string strIdentifier, idrs_exception *pargException) |
| Sets a unique identifier to the context. | |
| const idrs_string | CSearchContext_GetIdentifier (const CSearchContext argCSearchContext, idrs_exception *pargException) |
| Gets the context identifier. | |
| CSearchContext | CSearchContext_FollowedBy (CSearchContext argCSearchContext, enum MatchPosition evMatchPosition, const CSearchContext objContext, idrs_exception *pargException) |
| Specifies the next context to be searched for, after the current context has been matched. | |
| CSearchContextArray | ArrayInterface_Create_CSearchContextArray (idrs_exception *pargException) |
| Creates a new CSearchContextArray object. | |
Interface for CSearchContext wrapper.
| enum MatchPosition |
Position of a search match in the context of chained searches.
| enum SearchType |
Types of searches supported.
| CSearchContextArray ArrayInterface_Create_CSearchContextArray | ( | idrs_exception * | pargException | ) |
Creates a new CSearchContextArray object.
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CSearchContext CSearchContext_FollowedBy | ( | CSearchContext | argCSearchContext, |
| enum MatchPosition | evMatchPosition, | ||
| const CSearchContext | objContext, | ||
| idrs_exception * | pargException | ||
| ) |
Specifies the next context to be searched for, after the current context has been matched.
| argCSearchContext | CSearchContext handle |
| evMatchPosition | The position relative to the current match where the next context must be matched. |
| objContext | The next context to be searched for after the current context has been matched. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| const idrs_string CSearchContext_GetIdentifier | ( | const CSearchContext | argCSearchContext, |
| idrs_exception * | pargException | ||
| ) |
Gets the context identifier.
If an identifier was previously assigned using SetIdentifier, it will be returned. Otherwise, a system-generated identifier will be provided.
| argCSearchContext | CSearchContext handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| enum SearchType CSearchContext_GetType | ( | const CSearchContext | argCSearchContext, |
| idrs_exception * | pargException | ||
| ) |
Gets the context search type.
| argCSearchContext | CSearchContext handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CSearchContext_SetIdentifier | ( | CSearchContext | argCSearchContext, |
| const idrs_string | strIdentifier, | ||
| idrs_exception * | pargException | ||
| ) |
Sets a unique identifier to the context.
This identifier is used to reference the context containing matched content after the search process is completed.
If no identifier is explicitly assigned via this method, a unique identifier will be automatically generated.
| argCSearchContext | CSearchContext handle |
| strIdentifier | The user-defined identifier for the search context. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |