OpenSslLib::OpenSslLib(QObject *parent) : QObject(parent) { enc_ctx = nullptr; dec_ctx = nullptr; loaded = false; loadFunctions(); }
LibraryBinary::LibraryBinary(const std::string & binaryPath, const std::vector<std::string> & funcNames) : _type(LibraryBinary::eLibraryTypeExternal) , _library(0) , _valid(false) { if ( !loadBinary(binaryPath) ) { return; } loadFunctions(funcNames); }
int main() { HDLL dll = loadFunctions(); if(!dll) { return 0; } Debug::info("dll has loaded"); //read - reads to buff //write - append buff for(int i = 0; i<FILE_INPUT_AMOUNT; ++i) { Thread threadReader(reader, Thread::packThreadData(inputFiles[i])); threadReader.startSync(); Thread threadWriter(writer, Thread::packThreadData(outFile)); threadWriter.startSync(); } DllLoader::free(dll); cout<<endl; return 0; }
void initGL(unsigned int width, unsigned int height) { glClearColor(0, 0, 0, 0); //glClearColor(1.0f, 1.0f, 1.0f, 1.0f); glDisable(GL_DEPTH_TEST); resizeGL(width, height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); loadFunctions(); loadResources(); loadShaderProgram(SHADER_SRC); //glPolygonMode( GL_FRONT_AND_BACK, GL_LINE); //glFrontFace(GL_CW); //glEnable(GL_CULL_FACE); //glCullFace(GL_BACK); // set up default camera g_cam_pos.x = 0; g_cam_pos.y = 0; g_cam_pos.z = -10; g_cam_rot.x = 0; g_cam_rot.y = 0; }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow), _points(new PointsCollection), _plotBuilder(new PlotBuilder) { ui->setupUi(this); _pointsWidget = new PointsWidget(NULL, _points); _pointsWidget->setVisible(false); _plotControlWidget = new PlotControlWidget(this, loadFunctions()); _plotWidget = new PlotWidget(this, _points); ui->verticalLayout->insertWidget(0, _plotControlWidget); ui->verticalLayout->addSpacerItem(new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding)); ui->horizontalLayout->addWidget(_plotWidget); ui->actionSave->setShortcut(QKeySequence(tr("Ctrl+S"))); ui->actionLoad->setShortcut(QKeySequence(tr("Ctrl+O"))); setupConnections(); }