@@ -102,16 +102,16 @@ void ProfileLoader::loadProfile( const Profile& profile )
102
102
throw std::runtime_error ( " Warning: The profile " + profile.find ( constants::avProfileIdentificator )->second + " is invalid. It will not be loaded." );
103
103
}
104
104
105
- const ProfileLoader::Profiles& ProfileLoader::getProfiles ()
105
+ const ProfileLoader::Profiles& ProfileLoader::getProfiles () const
106
106
{
107
107
return _profiles;
108
108
}
109
109
110
- ProfileLoader::Profiles ProfileLoader::getFormatProfiles ()
110
+ ProfileLoader::Profiles ProfileLoader::getFormatProfiles () const
111
111
{
112
112
Profiles profiles;
113
113
114
- for ( Profiles::iterator it = _profiles.begin (); it != _profiles.end (); ++it )
114
+ for ( Profiles::const_iterator it = _profiles.begin (); it != _profiles.end (); ++it )
115
115
{
116
116
if ( (*it).find ( constants::avProfileType )->second == constants::avProfileTypeFormat )
117
117
profiles.push_back ( *it );
@@ -120,11 +120,11 @@ ProfileLoader::Profiles ProfileLoader::getFormatProfiles()
120
120
return profiles;
121
121
}
122
122
123
- ProfileLoader::Profiles ProfileLoader::getVideoProfiles ()
123
+ ProfileLoader::Profiles ProfileLoader::getVideoProfiles () const
124
124
{
125
125
Profiles profiles;
126
126
127
- for ( Profiles::iterator it = _profiles.begin (); it != _profiles.end (); ++it )
127
+ for ( Profiles::const_iterator it = _profiles.begin (); it != _profiles.end (); ++it )
128
128
{
129
129
if ( (*it).find ( constants::avProfileType )->second == constants::avProfileTypeVideo )
130
130
profiles.push_back ( *it );
@@ -133,11 +133,11 @@ ProfileLoader::Profiles ProfileLoader::getVideoProfiles()
133
133
return profiles;
134
134
}
135
135
136
- ProfileLoader::Profiles ProfileLoader::getAudioProfiles ()
136
+ ProfileLoader::Profiles ProfileLoader::getAudioProfiles () const
137
137
{
138
138
Profiles profiles;
139
139
140
- for ( Profiles::iterator it = _profiles.begin (); it != _profiles.end (); ++it )
140
+ for ( Profiles::const_iterator it = _profiles.begin (); it != _profiles.end (); ++it )
141
141
{
142
142
if ( (*it).find ( constants::avProfileType )->second == constants::avProfileTypeAudio )
143
143
profiles.push_back ( *it );
@@ -159,7 +159,7 @@ ProfileLoader::Profile& ProfileLoader::getProfile( const std::string& avProfileI
159
159
}
160
160
161
161
162
- bool ProfileLoader::checkFormatProfile ( const Profile& profileToCheck )
162
+ bool ProfileLoader::checkFormatProfile ( const Profile& profileToCheck ) const
163
163
{
164
164
bool isValid = true ;
165
165
@@ -174,7 +174,7 @@ bool ProfileLoader::checkFormatProfile( const Profile& profileToCheck )
174
174
return isValid;
175
175
}
176
176
177
- bool ProfileLoader::checkVideoProfile ( const Profile& profileToCheck )
177
+ bool ProfileLoader::checkVideoProfile ( const Profile& profileToCheck ) const
178
178
{
179
179
bool isValid = true ;
180
180
@@ -189,7 +189,7 @@ bool ProfileLoader::checkVideoProfile( const Profile& profileToCheck )
189
189
return isValid;
190
190
}
191
191
192
- bool ProfileLoader::checkAudioProfile ( const Profile& profileToCheck )
192
+ bool ProfileLoader::checkAudioProfile ( const Profile& profileToCheck ) const
193
193
{
194
194
bool isValid = true ;
195
195
0 commit comments