Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
behavior_loader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioroboticslab
biotracker
behavior_loader
Commits
333bdb20
Commit
333bdb20
authored
6 years ago
by
barthgr
Browse files
Options
Downloads
Patches
Plain Diff
update code documentation
parent
936c4a95
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SrcBehaviorLoader/PluginLoader.cpp
+6
-6
6 additions, 6 deletions
SrcBehaviorLoader/PluginLoader.cpp
SrcBehaviorLoader/PluginLoader.h
+10
-3
10 additions, 3 deletions
SrcBehaviorLoader/PluginLoader.h
with
16 additions
and
9 deletions
SrcBehaviorLoader/PluginLoader.cpp
+
6
−
6
View file @
333bdb20
...
...
@@ -13,9 +13,9 @@
#include
<QFileInfo>
#define MAX_KEY_LENGTH 255
#define MAX_VALUE_NAME 16383
std
::
vector
<
std
::
string
>
QueryKey
(
HKEY
hKey
,
std
::
string
path
)
{
{
//See https://docs.microsoft.com/en-us/windows/desktop/sysinfo/enumerating-registry-subkeys
std
::
vector
<
std
::
string
>
list
;
TCHAR
achClass
[
MAX_PATH
]
=
TEXT
(
""
);
// buffer for class name
...
...
@@ -28,12 +28,12 @@ std::vector<std::string> QueryKey(HKEY hKey, std::string path)
DWORD
cbMaxValueData
;
// longest value data
DWORD
cbSecurityDescriptor
;
// size of security descriptor
FILETIME
ftLastWriteTime
;
// last write time
DWORD
i
,
retCode
;
DWORD
i
,
retCode
;
TCHAR
achValue
[
MAX_VALUE_NAME
];
DWORD
cchValue
=
MAX_VALUE_NAME
;
// Get the class name and the value count.
retCode
=
RegQueryInfoKey
(
hKey
,
// key handle
...
...
This diff is collapsed.
Click to expand it.
SrcBehaviorLoader/PluginLoader.h
+
10
−
3
View file @
333bdb20
...
...
@@ -8,8 +8,14 @@
#include
<map>
#include
<memory>
/**
* \class PluginLoader
* This class loads Qt-Plugins, the related metadata and files the plugin depends on.
* \author Hauke Mönck, Gregor Barth
*/
class
PluginLoader
:
QObject
{
{
Q_OBJECT
public:
explicit
PluginLoader
(
QObject
*
parent
=
0
);
...
...
@@ -29,7 +35,8 @@ public:
QStringListModel
*
getPluginList
();
/**
* Loads a BioTracker Plugin from a filpaht. It returns true if the Plugin could be loaded, otherwise false.
* Loads a BioTracker Plugin from a file path. It returns true if the Plugin could be loaded, otherwise false.
* The loaded plugin acts as singleton!
*/
bool
loadPluginFromFilename
(
QString
const
&
filename
);
...
...
@@ -95,4 +102,4 @@ private:
QStringListModel
*
m_PluginListModel
;
};
#endif // PLUGINLOADER_H
\ No newline at end of file
#endif // PLUGINLOADER_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment