Changeset 68332 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 8, 2017 8:38:07 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 117453
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/EbmlWriter.cpp
r67914 r68332 54 54 }; 55 55 56 /** Stack of EBML sub elements. */ 56 57 std::stack<EbmlSubElement> m_Elements; 57 RTFILE m_File; 58 /** The file's handle. */ 59 RTFILE m_File; 60 /** The file's name (path). */ 61 Utf8Str m_strFile; 58 62 59 63 public: … … 69 73 inline int create(const char *a_pszFilename, uint64_t fOpen) 70 74 { 71 return RTFileOpen(&m_File, a_pszFilename, fOpen); 75 int rc = RTFileOpen(&m_File, a_pszFilename, fOpen); 76 if (RT_SUCCESS(rc)) 77 { 78 m_strFile = a_pszFilename; 79 } 80 81 return rc; 82 } 83 84 /** Returns the file name. */ 85 inline const Utf8Str& getFileName(void) 86 { 87 return m_strFile; 72 88 } 73 89 … … 104 120 RTFileClose(m_File); 105 121 m_File = NIL_RTFILE; 122 123 m_strFile = ""; 106 124 } 107 125 … … 1106 1124 } 1107 1125 1126 const Utf8Str& WebMWriter::GetFileName(void) 1127 { 1128 return m_pImpl->m_Ebml.getFileName(); 1129 } 1130 1108 1131 uint64_t WebMWriter::GetFileSize(void) 1109 1132 { -
trunk/src/VBox/Main/src-client/EbmlWriter.h
r67914 r68332 31 31 32 32 #include <iprt/file.h> 33 34 #include <VBox/com/string.h> /* For Utf8Str. */ 35 36 using namespace com; 33 37 34 38 class WebMWriter_Impl; … … 123 127 124 128 /** 129 * Gets file name. 130 * 131 * @returns File name as UTF-8 string. 132 */ 133 const Utf8Str& GetFileName(void); 134 135 /** 125 136 * Gets current output file size. 126 137 *
Note:
See TracChangeset
for help on using the changeset viewer.