Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
utility
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
utility
Commits
d8e43572
Commit
d8e43572
authored
6 years ago
by
jotpio
Browse files
Options
Downloads
Patches
Plain Diff
Add process ID to end of export file names
parent
79d1c480
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+79
-1
79 additions, 1 deletion
.gitignore
Src/Utility/misc.cpp
+4
-4
4 additions, 4 deletions
Src/Utility/misc.cpp
Src/Utility/misc.h
+2
-0
2 additions, 0 deletions
Src/Utility/misc.h
with
85 additions
and
5 deletions
.gitignore
+
79
−
1
View file @
d8e43572
...
...
@@ -17,4 +17,82 @@ build
/.gitattributes
/*.opendb
/*.db
/*.sln
\ No newline at end of file
/*.sln
*_autogen
*.dir
*.stamp
*.stamp.depend
GeneratedFiles/
desktop.ini
*.swp
*.opensdf
*.sdf
*.suo
*.exe
*.psess
*.vsp
*.ipch
*.sln
*.vcxproj
*.vcxproj.filters
*.vcxproj.vspscc
.gitignore.swp
*.bak_*
*.ini
# ignore editor ~ files
.tags*
Doxyfile
Makefile
cmake_install.cmake
doxygen_sqlite3.db
*~
.idea/
/CMakeFiles
/doc
/html
/Debug
/Release
/build*
/Build*
/.vscode
*.kate-swp
# astyle original files
*.orig
*.user
*.obj
*.dll
*.qm
*.avi
*moc_*
*.tlog
*.log
*.ilk
*.lib
*.lastbuildstate
*.stamp
*.depend
*.pdb
*.exp
*.db
*.opendb
CMakeFiles
/BioTracker/*.vspx
*.cache
*.csv
build
bst_workspace.code-workspace
*.dll
*.qm
*.ilk
*.pdb
*.lib
*.json
*.ini
*.xml
*.csv
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Src/Utility/misc.cpp
+
4
−
4
View file @
d8e43572
...
...
@@ -2,7 +2,7 @@
#include
<QPoint>
// QPoint
#include
<QString>
#include
<QStringList>
#include
<QStringList>
int
BioTrackerUtilsMisc
::
split
(
std
::
string
&
txt
,
std
::
vector
<
std
::
string
>
&
strs
,
char
ch
)
{
...
...
@@ -37,9 +37,6 @@ std::string BioTrackerUtilsMisc::getTimeAndDate(std::string prefix, std::string
// timeInfo += suffix;
// return timeInfo;
time_t
rawtime
;
struct
tm
*
timeinfo
;
...
...
@@ -54,6 +51,9 @@ std::string BioTrackerUtilsMisc::getTimeAndDate(std::string prefix, std::string
std
::
string
timeStampF
(
t
);
out
+=
timeStampF
;
out
+=
"_"
;
out
+=
std
::
to_string
(
_getpid
());
out
+=
suffix
;
return
out
;
...
...
This diff is collapsed.
Click to expand it.
Src/Utility/misc.h
+
2
−
0
View file @
d8e43572
...
...
@@ -3,6 +3,8 @@
#include
<string>
#include
<time.h>
#include
<cv.h>
#include
<stdio.h>
#include
<process.h>
#include
<QPoint>
namespace
BioTrackerUtilsMisc
{
...
...
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