Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
bea15d03
Kaydet (Commit)
bea15d03
authored
Ara 19, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CID#736937 Not restoring ostream format
Change-Id: I07b1d90258647453e498b574bc38c78872041c2d
üst
765f3063
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
13 deletions
+22
-13
MorkParser.cxx
connectivity/source/drivers/mork/MorkParser.cxx
+22
-13
No files found.
connectivity/source/drivers/mork/MorkParser.cxx
Dosyayı görüntüle @
bea15d03
...
...
@@ -32,6 +32,7 @@
*/
#include "MorkParser.hxx"
#include <boost/io/ios_state.hpp>
#include <stdlib.h>
#include <sstream>
#include <string>
...
...
@@ -601,6 +602,11 @@ std::string &MorkParser::getColumn( int oid )
void
MorkParser
::
retrieveLists
(
std
::
set
<
std
::
string
>&
lists
)
{
#ifdef VERBOSE
boost
::
io
::
ios_all_saver
ias
(
std
::
cout
);
std
::
cout
<<
std
::
hex
<<
std
::
uppercase
;
#endif
MorkTableMap
*
tables
=
getTables
(
defaultScope_
);
if
(
!
tables
)
return
;
for
(
MorkTableMap
::
iterator
TableIter
=
tables
->
begin
();
...
...
@@ -609,7 +615,7 @@ void MorkParser::retrieveLists(std::set<std::string>& lists)
#ifdef VERBOSE
std
::
cout
<<
"
\t
Table:"
<<
(
(
int
)
TableIter
->
first
<
0
?
"-"
:
" "
)
<<
std
::
hex
<<
std
::
uppercase
<<
TableIter
->
first
<<
std
::
endl
;
<<
TableIter
->
first
<<
std
::
endl
;
#endif
MorkRowMap
*
rows
=
getRows
(
defaultListScope_
,
&
TableIter
->
second
);
if
(
!
rows
)
return
;
...
...
@@ -619,7 +625,7 @@ void MorkParser::retrieveLists(std::set<std::string>& lists)
#ifdef VERBOSE
std
::
cout
<<
"
\t\t\t
Row Id:"
<<
(
(
int
)
RowIter
->
first
<
0
?
"-"
:
" "
)
<<
std
::
hex
<<
std
::
uppercase
<<
RowIter
->
first
<<
std
::
endl
;
<<
RowIter
->
first
<<
std
::
endl
;
std
::
cout
<<
"
\t\t\t\t
Cells:
\r\n
"
;
#endif
// Get cells
...
...
@@ -638,6 +644,11 @@ void MorkParser::retrieveLists(std::set<std::string>& lists)
void
MorkParser
::
getRecordKeysForListTable
(
std
::
string
&
listName
,
std
::
set
<
int
>&
records
)
{
#ifdef VERBOSE
boost
::
io
::
ios_all_saver
ias
(
std
::
cout
);
std
::
cout
<<
std
::
hex
<<
std
::
uppercase
;
#endif
MorkTableMap
*
tables
=
getTables
(
defaultScope_
);
if
(
!
tables
)
return
;
for
(
MorkTableMap
::
iterator
TableIter
=
tables
->
begin
();
...
...
@@ -646,7 +657,7 @@ void MorkParser::getRecordKeysForListTable(std::string& listName, std::set<int>&
#ifdef VERBOSE
std
::
cout
<<
"
\t
Table:"
<<
(
(
int
)
TableIter
->
first
<
0
?
"-"
:
" "
)
<<
std
::
hex
<<
std
::
uppercase
<<
TableIter
->
first
<<
std
::
endl
;
<<
TableIter
->
first
<<
std
::
endl
;
#endif
MorkRowMap
*
rows
=
getRows
(
0x81
,
&
TableIter
->
second
);
if
(
!
rows
)
return
;
...
...
@@ -656,7 +667,7 @@ void MorkParser::getRecordKeysForListTable(std::string& listName, std::set<int>&
#ifdef VERBOSE
std
::
cout
<<
"
\t\t\t
Row Id:"
<<
(
(
int
)
RowIter
->
first
<
0
?
"-"
:
" "
)
<<
std
::
hex
<<
std
::
uppercase
<<
RowIter
->
first
<<
std
::
endl
;
<<
RowIter
->
first
<<
std
::
endl
;
std
::
cout
<<
"
\t\t\t\t
Cells:
\r\n
"
;
#endif
// Get cells
...
...
@@ -686,6 +697,9 @@ void MorkParser::getRecordKeysForListTable(std::string& listName, std::set<int>&
void
MorkParser
::
dump
()
{
boost
::
io
::
ios_all_saver
ias
(
std
::
cout
);
std
::
cout
<<
std
::
hex
<<
std
::
uppercase
;
std
::
cout
<<
"Column Dict:
\r\n
"
;
std
::
cout
<<
"=============================================
\r\n\r\n
"
;
...
...
@@ -693,7 +707,7 @@ void MorkParser::dump()
for
(
MorkDict
::
iterator
iter
=
columns_
.
begin
();
iter
!=
columns_
.
end
();
++
iter
)
{
std
::
cout
<<
std
::
hex
<<
std
::
uppercase
<<
iter
->
first
std
::
cout
<<
iter
->
first
<<
" : "
<<
iter
->
second
<<
std
::
endl
;
...
...
@@ -710,7 +724,7 @@ void MorkParser::dump()
continue
;
}
std
::
cout
<<
std
::
hex
<<
std
::
uppercase
<<
iter
->
first
std
::
cout
<<
iter
->
first
<<
" : "
<<
iter
->
second
<<
"
\r\n
"
;
...
...
@@ -724,21 +738,19 @@ void MorkParser::dump()
for
(
TableScopeMap
::
iterator
iter
=
mork_
.
begin
();
iter
!=
mork_
.
end
();
++
iter
)
{
std
::
cout
<<
"
\r\n
Scope:"
<<
std
::
hex
<<
std
::
uppercase
<<
iter
->
first
<<
std
::
endl
;
std
::
cout
<<
"
\r\n
Scope:"
<<
iter
->
first
<<
std
::
endl
;
for
(
MorkTableMap
::
iterator
TableIter
=
iter
->
second
.
begin
();
TableIter
!=
iter
->
second
.
end
();
++
TableIter
)
{
std
::
cout
<<
"
\t
Table:"
<<
(
(
int
)
TableIter
->
first
<
0
?
"-"
:
" "
)
<<
std
::
hex
<<
std
::
uppercase
<<
TableIter
->
first
<<
std
::
endl
;
<<
TableIter
->
first
<<
std
::
endl
;
for
(
RowScopeMap
::
iterator
RowScopeIter
=
TableIter
->
second
.
begin
();
RowScopeIter
!=
TableIter
->
second
.
end
();
++
RowScopeIter
)
{
std
::
cout
<<
"
\t\t
RowScope:"
<<
std
::
hex
<<
std
::
uppercase
<<
RowScopeIter
->
first
<<
std
::
endl
;
for
(
MorkRowMap
::
iterator
RowIter
=
RowScopeIter
->
second
.
begin
();
...
...
@@ -746,7 +758,6 @@ void MorkParser::dump()
{
std
::
cout
<<
"
\t\t\t
Row Id:"
<<
((
int
)
RowIter
->
first
<
0
?
"-"
:
" "
)
<<
std
::
hex
<<
std
::
uppercase
<<
RowIter
->
first
<<
std
::
endl
;
std
::
cout
<<
"
\t\t\t\t
Cells:"
<<
std
::
endl
;
...
...
@@ -755,10 +766,8 @@ void MorkParser::dump()
{
// Write ids
std
::
cout
<<
"
\t\t\t\t\t
"
<<
std
::
hex
<<
std
::
uppercase
<<
CellsIter
->
first
<<
" : "
<<
std
::
hex
<<
std
::
uppercase
<<
CellsIter
->
second
<<
" => "
;
...
...
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