Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
2a9f1eb1
Commit
2a9f1eb1
authored
Aug 31, 2015
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(UniSetTypes): доработал IDList, чтобы при добавлении можно было задать
либо название датчика либо сразу его id.
parent
c5ef2617
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
UniSetTypes.cc
src/ObjectRepository/UniSetTypes.cc
+12
-1
No files found.
src/ObjectRepository/UniSetTypes.cc
View file @
2a9f1eb1
...
@@ -126,8 +126,19 @@ UniSetTypes::IDList::IDList( std::vector<std::string>&& svec ):
...
@@ -126,8 +126,19 @@ UniSetTypes::IDList::IDList( std::vector<std::string>&& svec ):
UniSetTypes
::
IDList
::
IDList
(
std
::
vector
<
std
::
string
>&
svec
)
:
UniSetTypes
::
IDList
::
IDList
(
std
::
vector
<
std
::
string
>&
svec
)
:
UniSetTypes
::
IDList
::
IDList
()
UniSetTypes
::
IDList
::
IDList
()
{
{
auto
conf
=
uniset_conf
();
for
(
const
auto
&
s
:
svec
)
for
(
const
auto
&
s
:
svec
)
add
(
uni_atoi
(
s
)
);
{
ObjectId
id
;
if
(
is_digit
(
s
)
)
id
=
uni_atoi
(
s
);
else
id
=
conf
->
getSensorID
(
s
);
add
(
id
);
}
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
UniSetTypes
::
IDList
::
IDList
()
:
UniSetTypes
::
IDList
::
IDList
()
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment