The Btrieve filter class.
More...
#include <btrieveCpp.h>
The Btrieve filter class.
- Examples
- bfilter.cpp, and btestbulk.cpp.
◆ BtrieveFilter()
BtrieveFilter::BtrieveFilter |
( |
| ) |
|
◆ ~BtrieveFilter()
BtrieveFilter::~BtrieveFilter |
( |
| ) |
|
◆ SetACSMode()
◆ SetACSName()
Set the alternate collation sequence name.
- Parameters
-
- Description
- Filters have no alternate collation sequence name initially. To reference an alternate collation sequence name it must exist in the file. An alternate collation sequence name may be added to a file when an index is created. See BtrieveFile::IndexCreate.
- Snippet
- C++ bfilter.cpp Python bfilter.py
rc = btrieveFilter.SetACSName("u54-msft_enus_0")
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveFilter::SetACSName():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(rc))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples
- bfilter.cpp.
◆ SetACSUserDefined()
Set the user defined alternate collation sequence name.
- Parameters
-
- Description
- Filters have no user defined alternate collation sequence name initially. To reference a user defined alternate collation sequence it must exist in the file. A user defined alternate collation sequence may be added to a file when an index is created. See BtrieveFile::IndexCreate.
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ SetComparison()
Set the comparison.
- Parameters
-
[in] | comparison | The comparison. |
- Description
- Comparison defaults to Btrieve::COMPARISON_NONE.
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveFilter.SetComparison(btrievePython.Btrieve.COMPARISON_EQUAL)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveFilter::SetComparison():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(rc))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples
- bfilter.cpp, and btestbulk.cpp.
◆ SetComparisonConstant()
Btrieve::StatusCode BtrieveFilter::SetComparisonConstant |
( |
const char * | constant, |
|
|
int | constantLength ) |
Set the comparison constant.
- Parameters
-
[in] | constant | The comparison constant. |
[in] | constantLength | The comparison constant length. Comparison constant length is limited to Btrieve::MAXIMUM_KEY_LENGTH. |
- Description
- Filters have no comparison constant initially.
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveFilter.SetComparisonConstant(key)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveFilter::SetComparisonConstant():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(rc))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples
- bfilter.cpp, and btestbulk.cpp.
◆ SetComparisonField()
Set the comparison field.
- Parameters
-
- Description
- Filters have no comparison field initially.
- Snippet
- C++ bfilter.cpp Python bfilter.py
rc = btrieveFilter.SetComparisonField(27)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveFilter::SetComparisonField():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(rc))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples
- bfilter.cpp.
◆ SetConnector()
◆ SetField()
Set the field.
- Parameters
-
- Description
- Filters have no field initially. Offset plus length is limited to Btrieve::MAXIMUM_RECORD_LENGTH.
- Snippet
- C++ btestbulk.cpp Python btestbulk.py
rc = btrieveFilter.SetField(0, 1, btrievePython.Btrieve.DATA_TYPE_UNSIGNED_BINARY)
assert(rc == btrievePython.Btrieve.STATUS_CODE_NO_ERROR), "Error: BtrieveFilter::SetField():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(rc))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples
- bfilter.cpp, and btestbulk.cpp.
◆ SetLikeCodePageName()
Set the code page name to be used for the comparison types Like or Not Like.
- Parameters
-
[in] | name | The name of the code page. |
- Description
- Supply the name of the code page to be used for string comparisons for the Like/Not Like comparisons. The comparison constant and data must use the same code page for accurate comparison.
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
◆ SetSystemField()
Set the system field.
- Parameters
-
[in] | systemField | The system field. |
- Description
- Filters have no system field initially.
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString