mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: writeFile - refactoring and added constructor
This commit is contained in:
committed by
Mark Olesen
parent
31aad2159f
commit
e753125669
@ -68,7 +68,7 @@ protected:
|
||||
const objectRegistry& fileObr_;
|
||||
|
||||
//- Prefix
|
||||
const word prefix_;
|
||||
const fileName prefix_;
|
||||
|
||||
//- Name of file
|
||||
word fileName_;
|
||||
@ -124,9 +124,6 @@ protected:
|
||||
Omanip<int> valueWidth(const label offset = 0) const;
|
||||
|
||||
|
||||
//- No copy construct
|
||||
writeFile(const writeFile&) = delete;
|
||||
|
||||
//- No copy assignment
|
||||
void operator=(const writeFile&) = delete;
|
||||
|
||||
@ -143,8 +140,9 @@ public:
|
||||
writeFile
|
||||
(
|
||||
const objectRegistry& obr,
|
||||
const word& prefix,
|
||||
const word& file = "undefined"
|
||||
const fileName& prefix,
|
||||
const word& name = "undefined",
|
||||
const bool writeToFile = true
|
||||
);
|
||||
|
||||
//- Construct from objectRegistry, prefix, fileName
|
||||
@ -152,11 +150,15 @@ public:
|
||||
writeFile
|
||||
(
|
||||
const objectRegistry& obr,
|
||||
const word& prefix,
|
||||
const word& file,
|
||||
const dictionary& dict
|
||||
const fileName& prefix,
|
||||
const word& name,
|
||||
const dictionary& dict,
|
||||
const bool writeToFile = true
|
||||
);
|
||||
|
||||
//- Construct copy
|
||||
writeFile(const writeFile& wf);
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~writeFile() = default;
|
||||
|
||||
Reference in New Issue
Block a user