diff options
| author | milla <marc.illa@dolby.com> | 2021-05-27 12:20:05 +0200 |
|---|---|---|
| committer | milla <marc.illa@dolby.com> | 2021-06-03 14:21:33 +0200 |
| commit | 9c6e1bc188987558e64f72f1561749ccd20b5379 (patch) | |
| tree | 649c4f28b8ec7db3f256bb520ed6b5786a2315be /src/ACES_Sequence_Parser.cpp | |
| parent | f9d7fbc33aa571c547d916b145712469efd9f4b8 (diff) | |
Do not export symbols on definitions in cpp. (moved functions and classes to an unnamed namespace and made variables static)
Diffstat (limited to 'src/ACES_Sequence_Parser.cpp')
| -rw-r--r-- | src/ACES_Sequence_Parser.cpp | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/src/ACES_Sequence_Parser.cpp b/src/ACES_Sequence_Parser.cpp index 655da1f..95887a0 100644 --- a/src/ACES_Sequence_Parser.cpp +++ b/src/ACES_Sequence_Parser.cpp @@ -32,57 +32,57 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <assert.h> #include <KM_log.h> - using Kumu::DefaultLogSink; +namespace { + class FileList : public std::list<std::string> + { + std::string m_DirName; -class FileList : public std::list<std::string> -{ - std::string m_DirName; - -public: - FileList() {} - ~FileList() {} + public: + FileList() {} + ~FileList() {} - const FileList& operator=(const std::list<std::string>& pathlist) - { - std::list<std::string>::const_iterator i; - for(i = pathlist.begin(); i != pathlist.end(); i++) - push_back(*i); - return *this; - } + const FileList& operator=(const std::list<std::string>& pathlist) + { + std::list<std::string>::const_iterator i; + for(i = pathlist.begin(); i != pathlist.end(); i++) + push_back(*i); + return *this; + } - // - ASDCP::Result_t InitFromDirectory(const std::string& path) - { - char next_file[Kumu::MaxFilePath]; - Kumu::DirScanner Scanner; + // + ASDCP::Result_t InitFromDirectory(const std::string& path) + { + char next_file[Kumu::MaxFilePath]; + Kumu::DirScanner Scanner; - ASDCP::Result_t result = Scanner.Open(path); + ASDCP::Result_t result = Scanner.Open(path); - if(ASDCP_SUCCESS(result)) - { - m_DirName = path; + if(ASDCP_SUCCESS(result)) + { + m_DirName = path; - while(ASDCP_SUCCESS(Scanner.GetNext(next_file))) - { - if(next_file[0] == '.') // no hidden files or internal links - continue; + while(ASDCP_SUCCESS(Scanner.GetNext(next_file))) + { + if(next_file[0] == '.') // no hidden files or internal links + continue; - std::string Str(m_DirName); - Str += "/"; - Str += next_file; + std::string Str(m_DirName); + Str += "/"; + Str += next_file; - if(!Kumu::PathIsDirectory(Str)) - push_back(Str); - } + if(!Kumu::PathIsDirectory(Str)) + push_back(Str); + } - sort(); - } + sort(); + } - return result; - } -}; + return result; + } + }; +} class AS_02::ACES::SequenceParser::h__SequenceParser |
