mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
output -> write
This commit is contained in:
parent
6b5c71a015
commit
b803511934
@ -110,17 +110,27 @@ DownloadDb::
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void DownloadDb::
|
void DownloadDb::
|
||||||
output(ostream &out) const {
|
output(ostream &out) const {
|
||||||
|
out << "[" << _server_db._filename << " " << _client_db._filename << "]";
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: DownloadDb::write
|
||||||
|
// Access: Public
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
void DownloadDb::
|
||||||
|
write(ostream &out) const {
|
||||||
out << "DownloadDb" << endl;
|
out << "DownloadDb" << endl;
|
||||||
out << "============================================================" << endl;
|
out << "============================================================" << endl;
|
||||||
out << " Client DB file: " << _client_db._filename << endl;
|
out << " Client DB file: " << _client_db._filename << endl;
|
||||||
out << "============================================================" << endl;
|
out << "============================================================" << endl;
|
||||||
_client_db.output(out);
|
_client_db.write(out);
|
||||||
out << endl;
|
out << endl;
|
||||||
out << "============================================================" << endl;
|
out << "============================================================" << endl;
|
||||||
out << " Server DB file: " << endl;
|
out << " Server DB file: " << _server_db._filename << endl;
|
||||||
out << "============================================================" << endl;
|
out << "============================================================" << endl;
|
||||||
_server_db.output(out);
|
_server_db.write(out);
|
||||||
output_version_map(out);
|
write_version_map(out);
|
||||||
out << endl;
|
out << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -452,12 +462,12 @@ MultifileRecord(string name, Phase phase, int size, int status) {
|
|||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: DownloadDb::MultifileRecord::output
|
// Function: DownloadDb::MultifileRecord::write
|
||||||
// Access: Public
|
// Access: Public
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void DownloadDb::MultifileRecord::
|
void DownloadDb::MultifileRecord::
|
||||||
output(ostream &out) const {
|
write(ostream &out) const {
|
||||||
out << "==================================================" << endl;
|
out << "==================================================" << endl;
|
||||||
out << "MultifileRecord: " << _name << endl
|
out << "MultifileRecord: " << _name << endl
|
||||||
<< " phase: " << _phase << endl
|
<< " phase: " << _phase << endl
|
||||||
@ -471,7 +481,7 @@ output(ostream &out) const {
|
|||||||
out << "--------------------------------------------------" << endl;
|
out << "--------------------------------------------------" << endl;
|
||||||
pvector< PT(FileRecord) >::const_iterator i = _file_records.begin();
|
pvector< PT(FileRecord) >::const_iterator i = _file_records.begin();
|
||||||
for(; i != _file_records.end(); ++i) {
|
for(; i != _file_records.end(); ++i) {
|
||||||
(*i)->output(out);
|
(*i)->write(out);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -573,10 +583,10 @@ Db(void) {
|
|||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void DownloadDb::Db::
|
void DownloadDb::Db::
|
||||||
output(ostream &out) const {
|
write(ostream &out) const {
|
||||||
pvector< PT(MultifileRecord) >::const_iterator i = _mfile_records.begin();
|
pvector< PT(MultifileRecord) >::const_iterator i = _mfile_records.begin();
|
||||||
for(; i != _mfile_records.end(); ++i) {
|
for(; i != _mfile_records.end(); ++i) {
|
||||||
(*i)->output(out);
|
(*i)->write(out);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1069,7 +1079,7 @@ FileRecord(string name) {
|
|||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void DownloadDb::FileRecord::
|
void DownloadDb::FileRecord::
|
||||||
output(ostream &out) const {
|
write(ostream &out) const {
|
||||||
out << " FileRecord: " << _name << endl;
|
out << " FileRecord: " << _name << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1324,12 +1334,12 @@ read_version_map(istream &read_stream) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: DownloadDb::output_version_map
|
// Function: DownloadDb::write_version_map
|
||||||
// Access: Public
|
// Access: Public
|
||||||
// Description:
|
// Description:
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void DownloadDb::
|
void DownloadDb::
|
||||||
output_version_map(ostream &out) const {
|
write_version_map(ostream &out) const {
|
||||||
out << "Version Map: " << endl;
|
out << "Version Map: " << endl;
|
||||||
VersionMap::const_iterator vmi;
|
VersionMap::const_iterator vmi;
|
||||||
VectorHash::const_iterator i;
|
VectorHash::const_iterator i;
|
||||||
|
@ -84,7 +84,8 @@ PUBLISHED:
|
|||||||
~DownloadDb(void);
|
~DownloadDb(void);
|
||||||
|
|
||||||
void output(ostream &out) const;
|
void output(ostream &out) const;
|
||||||
void output_version_map(ostream &out) const;
|
void write(ostream &out) const;
|
||||||
|
void write_version_map(ostream &out) const;
|
||||||
|
|
||||||
// Write a database file
|
// Write a database file
|
||||||
bool write_client_db(Filename &file);
|
bool write_client_db(Filename &file);
|
||||||
@ -141,7 +142,7 @@ public:
|
|||||||
public:
|
public:
|
||||||
FileRecord(void);
|
FileRecord(void);
|
||||||
FileRecord(string name);
|
FileRecord(string name);
|
||||||
void output(ostream &out) const;
|
void write(ostream &out) const;
|
||||||
string _name;
|
string _name;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -151,7 +152,7 @@ public:
|
|||||||
public:
|
public:
|
||||||
MultifileRecord(void);
|
MultifileRecord(void);
|
||||||
MultifileRecord(string name, Phase phase, int size, int status);
|
MultifileRecord(string name, Phase phase, int size, int status);
|
||||||
void output(ostream &out) const;
|
void write(ostream &out) const;
|
||||||
int get_num_files(void) const;
|
int get_num_files(void) const;
|
||||||
string get_file_name(int index) const;
|
string get_file_name(int index) const;
|
||||||
bool file_exists(string fname) const;
|
bool file_exists(string fname) const;
|
||||||
@ -171,7 +172,7 @@ public:
|
|||||||
class EXPCL_PANDAEXPRESS Db {
|
class EXPCL_PANDAEXPRESS Db {
|
||||||
public:
|
public:
|
||||||
Db(void);
|
Db(void);
|
||||||
void output(ostream &out) const;
|
void write(ostream &out) const;
|
||||||
int get_num_multifiles(void) const;
|
int get_num_multifiles(void) const;
|
||||||
string get_multifile_name(int index) const;
|
string get_multifile_name(int index) const;
|
||||||
bool multifile_exists(string mfname) const;
|
bool multifile_exists(string mfname) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user