Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
d20d8bd9
Commit
d20d8bd9
authored
Jan 30, 2012
by
Christopher Mueller
Committed by
Hugo Beauzée-Luyssen
Feb 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: node added hasattribute
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
998f1619
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
modules/stream_filter/dash/xml/Node.cpp
modules/stream_filter/dash/xml/Node.cpp
+8
-1
modules/stream_filter/dash/xml/Node.h
modules/stream_filter/dash/xml/Node.h
+1
-0
No files found.
modules/stream_filter/dash/xml/Node.cpp
View file @
d20d8bd9
...
...
@@ -45,7 +45,7 @@ Node::~Node ()
delete
(
this
->
subNodes
.
at
(
i
));
}
const
std
::
vector
<
Node
*>&
Node
::
getSubNodes
()
const
const
std
::
vector
<
Node
*>&
Node
::
getSubNodes
()
const
{
return
this
->
subNodes
;
}
...
...
@@ -62,6 +62,13 @@ void Node::setName (const std::stri
this
->
name
=
name
;
}
bool
Node
::
hasAttribute
(
const
std
::
string
&
name
)
{
if
(
this
->
attributes
.
find
(
name
)
!=
this
->
attributes
.
end
())
return
true
;
return
false
;
}
const
std
::
string
&
Node
::
getAttributeValue
(
const
std
::
string
&
key
)
const
{
std
::
map
<
std
::
string
,
std
::
string
>::
const_iterator
it
=
this
->
attributes
.
find
(
key
);
...
...
modules/stream_filter/dash/xml/Node.h
View file @
d20d8bd9
...
...
@@ -44,6 +44,7 @@ namespace dash
void
addSubNode
(
Node
*
node
);
const
std
::
string
&
getName
()
const
;
void
setName
(
const
std
::
string
&
name
);
bool
hasAttribute
(
const
std
::
string
&
name
);
void
addAttribute
(
const
std
::
string
&
key
,
const
std
::
string
&
value
);
const
std
::
string
&
getAttributeValue
(
const
std
::
string
&
key
)
const
;
std
::
vector
<
std
::
string
>
getAttributeKeys
()
const
;
...
...
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