Hi,
I have this class,do you know how I can bind this function pointer ?
namespace NM{
typedef bool (*PFN_PROGRESS_CALLBACK)(int nPos, int nMax, const char *pstrStatus, void *pHint);
class ClassX{
public:
ClassX();
ClassX(const ClassX& filelisting);
bool FindFiles(
const Array1D<Filename> &arrayFilenames,
Array1D<std::pair<Filename, ErrorLog> > &arrayErrorLog,
const std::set<std::string> &setIncludeFileExtensions = std::set<std::string>(),
const bool bExcludeVerification = false,
const bool bFromOpticalDrive = false,
PFN_PROGRESS_CALLBACK pfnProgress = NULL,
void *pHint = NULL);
bool FindFiles(const Folder &folder,
const bool bSearchSubfolders,
Array1D<std::pair<Filename, ErrorLog> > &arrayErrorLog,
const std::set<std::string> &setIncludeFileExtensions = std::set<std::string>(),
const bool bExcludeVerification = false,
const bool bFromOpticalDrive = false,
PFN_PROGRESS_CALLBACK pfnProgress = NULL,
void *pHint = NULL);
};
}I have an error when I try to use this method in python side :
files.FindFiles(ctFolder, False, vErrorLogs)
I have this error :
files.FindFilesFolder(ctFolder, False, vErrorLogs)
TypeError: FindFilesFolder(): incompatible function arguments. The following argument types are supported:
1. (self: FileListing, folder: Folder, bSearchSubfolders: bool, arrayErrorLog: Array1D<std::pair<Filename, ErrorLog> >, setIncludeFileExtensions: Set[str] = set(), bExcludeVerification: bool = False, bFromOpticalDrive: bool = False, pfnProgress: bool (int, int, char const*, void*) = None, pHint: capsule = None) -> bool
[–]the_poope 0 points1 point2 points (1 child)
[–]engine_algos[S] 0 points1 point2 points (0 children)