From 5f9e7bc673025ffdc953d254be0d0c65c70ee908 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 17 Apr 2014 20:19:56 +0200 Subject: Remove using directives from .h files --- src/MuxElements.h | 50 ++++++++++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 26 deletions(-) (limited to 'src/MuxElements.h') diff --git a/src/MuxElements.h b/src/MuxElements.h index 82e839d..e6752e5 100644 --- a/src/MuxElements.h +++ b/src/MuxElements.h @@ -38,8 +38,6 @@ #include "RemoteControl.h" #include "Eti.h" -using namespace std; - struct dabOutput { dabOutput(const char* proto, const char* name) : outputProto(proto), outputName(name), output(NULL) { } @@ -75,7 +73,7 @@ class DabLabel const char* text() const { return m_text; } uint16_t flag() const { return m_flag; } - const string short_label() const; + const std::string short_label() const; private: // In the DAB standard, the label is 16 chars. @@ -100,11 +98,11 @@ class dabEnsemble : public RemoteControllable { } /* Remote control */ - virtual void set_parameter(const string& parameter, - const string& value); + virtual void set_parameter(const std::string& parameter, + const std::string& value); /* Getting a parameter always returns a string. */ - virtual const string get_parameter(const string& parameter) const; + virtual const std::string get_parameter(const std::string& parameter) const; /* all fields are public, since this was a struct before */ uint16_t id; @@ -115,9 +113,9 @@ class dabEnsemble : public RemoteControllable { // range: -24 to +24 int international_table; - vector services; - vector components; - vector subchannels; + std::vector services; + std::vector components; + std::vector subchannels; }; @@ -210,14 +208,14 @@ class DabComponent : public RemoteControllable dabPacketComponent packet; }; - bool isPacketComponent(vector& subchannels); + bool isPacketComponent(std::vector& subchannels); /* Remote control */ - virtual void set_parameter(const string& parameter, - const string& value); + virtual void set_parameter(const std::string& parameter, + const std::string& value); /* Getting a parameter always returns a string. */ - virtual const string get_parameter(const string& parameter) const; + virtual const std::string get_parameter(const std::string& parameter) const; virtual ~DabComponent() {} @@ -243,16 +241,16 @@ class DabService : public RemoteControllable bool program; unsigned char getType(dabEnsemble* ensemble); - unsigned char nbComponent(vector& components); + unsigned char nbComponent(std::vector& components); DabLabel label; /* Remote control */ - virtual void set_parameter(const string& parameter, - const string& value); + virtual void set_parameter(const std::string& parameter, + const std::string& value); /* Getting a parameter always returns a string. */ - virtual const string get_parameter(const string& parameter) const; + virtual const std::string get_parameter(const std::string& parameter) const; virtual ~DabService() {} @@ -261,21 +259,21 @@ class DabService : public RemoteControllable DabService(const DabService& other); }; -vector::iterator getSubchannel( - vector& subchannels, int id); +std::vector::iterator getSubchannel( + std::vector& subchannels, int id); -vector::iterator getComponent( - vector& components, +std::vector::iterator getComponent( + std::vector& components, uint32_t serviceId, - vector::iterator current); + std::vector::iterator current); -vector::iterator getComponent( - vector& components, +std::vector::iterator getComponent( + std::vector& components, uint32_t serviceId); -vector::iterator getService( +std::vector::iterator getService( DabComponent* component, - vector& services); + std::vector& services); unsigned short getSizeCu(dabSubchannel* subchannel); -- cgit v1.2.3