The Btrieve version class.
More...
#include <btrieveCpp.h>
The Btrieve version class.
- Examples
- bversion.cpp.
◆ BtrieveVersion()
BtrieveVersion::BtrieveVersion |
( |
| ) |
|
◆ ~BtrieveVersion()
BtrieveVersion::~BtrieveVersion |
( |
| ) |
|
◆ GetClientRevisionNumber()
int BtrieveVersion::GetClientRevisionNumber |
( |
| ) |
|
Get the client revision number.
- Description
- Client refers to the instance of Zen used by the caller.
- Snippet
- C++ bversion.cpp
{
goto leave;
}
printf("ClientRevisionNumber = %d\n", i);
Python bversion.py rc = btrieveVersion.GetClientRevisionNumber()
assert(rc >= 0), "Error: btrieveVersion::GetClientRevisionNumber():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveVersion.GetLastStatusCode()))
- Return values
-
- Examples
- bversion.cpp.
◆ GetClientVersionNumber()
int BtrieveVersion::GetClientVersionNumber |
( |
| ) |
|
Get the client version number.
- Description
- Client refers to the instance of Zen used by the caller.
- Snippet
- C++ bversion.cpp
{
goto leave;
}
printf("ClientVersionNumber = %d\n", i);
Python bversion.py rc = btrieveVersion.GetClientVersionNumber()
assert(rc >= 0), "Error: btrieveVersion::GetClientVersionNumber():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveVersion.GetLastStatusCode()))
- Return values
-
- Examples
- bversion.cpp.
◆ GetClientVersionType()
Get the client version type.
- Description
- Client refers to the instance of Zen used by the caller.
- Snippet
- C++ bversion.cpp Python bversion.py
rc = btrieveVersion.GetClientVersionType()
assert(rc != btrievePython.Btrieve.VERSION_TYPE_UNKNOWN), "Error: btrieveVersion::GetClientVersionType():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveVersion.GetLastStatusCode()))
print("ClientVersionType =", btrievePython.Btrieve_VersionTypeToString(rc))
- Return values
-
- See also
- Btrieve::VersionTypeToString
- Examples
- bversion.cpp.
◆ GetLastStatusCode()
Get the last status code.
- Note
- This method is intended for use following methods which don't return a status code.
- Snippet
- C++ bversion.cpp Python bversion.py
rc = btrieveVersion.GetClientRevisionNumber()
assert(rc >= 0), "Error: btrieveVersion::GetClientRevisionNumber():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveVersion.GetLastStatusCode()))
- Return values
-
= Btrieve::STATUS_CODE_NO_ERROR | Success. |
!= Btrieve::STATUS_CODE_NO_ERROR | An error has occurred. |
- See also
- Btrieve::StatusCodeToString
- Examples
- bversion.cpp.
◆ GetLocalRevisionNumber()
int BtrieveVersion::GetLocalRevisionNumber |
( |
| ) |
|
Get the local revision number.
- Description
- Local refers to the instance of Zen running locally with the caller.
- Snippet
- C++ bversion.cpp
{
goto leave;
}
printf("LocalRevisionNumber = %d\n", i);
Python bversion.py rc = btrieveVersion.GetLocalRevisionNumber()
assert(rc >= 0), "Error: btrieveVersion::GetLocalRevisionNumber():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveVersion.GetLastStatusCode()))
- Return values
-
- Examples
- bversion.cpp.
◆ GetLocalVersionNumber()
int BtrieveVersion::GetLocalVersionNumber |
( |
| ) |
|
Get the local version number.
- Description
- Local refers to the instance of Zen running locally with the caller.
- Snippet
- C++ bversion.cpp
{
goto leave;
}
printf("LocalVersionNumber = %d\n", i);
Python bversion.py rc = btrieveVersion.GetLocalVersionNumber()
assert(rc >= 0), "Error: btrieveVersion::GetLocalVersionNumber():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveVersion.GetLastStatusCode()))
- Return values
-
- Examples
- bversion.cpp.
◆ GetLocalVersionType()
Get the local version type.
- Description
- Local refers to the instance of Zen running locally with the caller.
- Snippet
- C++ bversion.cpp Python bversion.py
rc = btrieveVersion.GetLocalVersionType()
assert(rc != btrievePython.Btrieve.VERSION_TYPE_UNKNOWN), "Error: btrieveVersion::GetLocalVersionType():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveVersion.GetLastStatusCode()))
print("LocalVersionType =", btrievePython.Btrieve_VersionTypeToString(rc))
- Return values
-
- See also
- Btrieve::VersionTypeToString
- Examples
- bversion.cpp.
◆ GetRemoteRevisionNumber()
int BtrieveVersion::GetRemoteRevisionNumber |
( |
| ) |
|
Get the remote revision number.
- Description
- Remote refers to the instance of Zen used to access the optionally supplied Btrieve file.
- Snippet
- C++ bversion.cpp
{
goto leave;
}
printf("RemoteRevisionNumber = %d\n", i);
Python bversion.py rc = btrieveVersion.GetRemoteRevisionNumber()
assert(rc >= 0), "Error: btrieveVersion::GetRemoteRevisionNumber():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveVersion.GetLastStatusCode()))
- Return values
-
- Examples
- bversion.cpp.
◆ GetRemoteVersionNumber()
int BtrieveVersion::GetRemoteVersionNumber |
( |
| ) |
|
Get the remote version number.
- Description
- Remote refers to the instance of Zen used to access the optionally supplied Btrieve file.
- Snippet
- C++ bversion.cpp
{
goto leave;
}
printf("RemoteVersionNumber = %d\n", i);
Python bversion.py rc = btrieveVersion.GetRemoteVersionNumber()
assert(rc >= 0), "Error: btrieveVersion::GetRemoteVersionNumber():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveVersion.GetLastStatusCode()))
- Return values
-
- Examples
- bversion.cpp.
◆ GetRemoteVersionType()
Get the remote version type.
- Description
- Remote refers to the instance of Zen used to access the optionally supplied Btrieve file.
- Snippet
- C++ bversion.cpp Python bversion.py
rc = btrieveVersion.GetRemoteVersionType()
assert(rc != btrievePython.Btrieve.VERSION_TYPE_UNKNOWN), "Error: btrieveVersion::GetRemoteVersionType():%d:%s.\n" % (rc, btrievePython.Btrieve_StatusCodeToString(btrieveVersion.GetLastStatusCode()))
print("RemoteVersionType =", btrievePython.Btrieve_VersionTypeToString(rc))
- Return values
-
- See also
- Btrieve::VersionTypeToString
- Examples
- bversion.cpp.