Commit Graph

40 Commits

Author SHA1 Message Date
86ef9e86dc ENH: make treatment of stream allocators more uniform (issue #532)
- use allocator class to wrap the stream pointers instead of passing
  them into ISstream, OSstream and using a dynamic cast to delete
  then. This is especially important if we will have a bidirectional
  stream (can't delete twice!).

STYLE:

- file stream constructors with std::string (C++11)

- for rewind, explicit about in|out direction. This is not currently
  important, but avoids surprises with any future bidirectional access.

- combined string streams in StringStream.H header.
  Similar to <sstream> include that has both input and output string
  streams.
2017-07-17 15:14:38 +02:00
9fbd612672 GIT: Initial state after latest Foundation merge 2016-09-20 14:49:08 +01:00
58f905ff70 C++11: Replaced the C NULL with the safer C++11 nullptr
Requires gcc version 4.7 or higher
2016-08-05 17:19:38 +01:00
70525fe75e ENH: include file tracking: missed out adding files to list of files to check 2016-01-27 17:35:46 +00:00
dc43311e62 src/OpenFOAM: Update ...IOErrorIn -> ...IOErrorInFunction
Avoids the clutter and maintenance effort associated with providing the
function signature string.
2015-11-10 21:13:04 +00:00
b50f294391 BUG: codeStream: do not reduce if timeStampMaster 2014-03-11 10:13:10 +00:00
f2d8f6361c ENH: dictionary: added topDict() function 2013-09-03 15:28:26 +01:00
0d8fff3a5f ENH: codeStream: function in dictionary context 2013-08-17 05:28:31 +01:00
ff373afdcc BUG: codeStream: make sure scatter result is consumed before starting again 2013-08-15 15:31:15 +01:00
2503ac43e5 ENH: codeStream: update from 2.2.0 2013-01-22 10:10:51 +00:00
4023418a6b ENH: codeStream: sha1 calculation cached 2012-09-25 14:14:05 +01:00
1cc1ddcacf ENH: dlOpen: check error message string 2011-10-24 21:31:38 +01:00
c2dd153a14 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
cb8bf9f7f0 ENH: codeStream: make it work with master-only reading (timeStampMaster) 2011-08-09 10:53:23 +01:00
30f2589d00 BUG: codeStream.C: commented out code for master-only checking since would not work for fields 2011-07-06 10:13:30 +01:00
b3558a8991 ENH: codeStream: work with timeStampMaster 2011-07-05 17:29:30 +01:00
9fa370f54a ENH: calcEntry: new functionEntry method 2011-06-29 09:56:01 +01:00
f79aeb9402 ENH: Time: construct dlLibraryTable before reading dictionary so controlDict can have e.g. #codeStream 2011-04-20 11:52:24 +01:00
a791316896 ENH: dlLibraryTable: moved library handles to objects 2011-04-18 16:41:21 +01:00
cf99e5c800 ENH: codeStream: added codeLibs 2011-03-21 17:54:20 +00:00
ea67afaf96 ENH: codedFixedValue : added printing 2011-03-18 14:54:11 +00:00
0ba821d184 ENH: codeStream: added message if loading library 2011-03-07 12:54:28 +00:00
7ca8b24a0d STYLE: minor code cleanup for codeStream/codedFixedValueFvPatchScalarField 2011-03-03 14:16:00 +01:00
97cd3af1ff ENH: cleanup codeStream - use dynamicCode, dynamicCodeContext encapsulation
Problems remain with codedFixedValueFvPatchScalarField:

- readIfModified() notices change on system/codeDict, but the
  codeProperties::setUnmodified() means that only a single entry will
  get processed

- it appears that while dlclose() may (or may not) be actually closing
  the library, there are probably still references about. This means
  that a subsequent reloading still points to the original functions
  and the lookup is not updated correctly.
2011-03-01 14:19:24 +01:00
74bc658fe9 ENH: new encapsulation: dynamicCode, dynamicCodeContext
- improve loading/unloading characteristics for codedFixedValue
  but still needs work
2011-02-24 17:14:59 +01:00
6eb982573c ENH: add stub function to codedFixedValueFvPatchScalarField for version checking
- eg, fixedValue10_<SHA1>, its existence indicates that the correct
  library has been loaded
2011-02-24 08:54:12 +01:00
97a15a8b06 STYLE: simplify stringOps::expand names 2011-02-23 14:42:51 +01:00
67fc6a171a ENH: use stringOps::expandDict when processing codeStream input 2011-02-23 14:22:14 +01:00
f4a84af465 STYLE: trim both ends of codeStream entries
- improves consistency of SHA1 calculation
2011-02-23 10:23:50 +01:00
abde400dd5 Merge remote branch 'OpenCFD/master' into olesenm
Conflicts:
	bin/foamCleanPath
2011-02-22 19:24:31 +01:00
70f359bb2b STYLE: refactor codeStream code into codeStreamTools 2011-02-22 18:22:57 +01:00
dce20ade07 ENH: compile codedFixedValueFvPatchScalarField into local directory only 2011-02-22 16:25:34 +01:00
141fe37a86 ENH: compile codeStream into local directory only 2011-02-22 16:07:06 +01:00
f0f2bfa632 ENH: refactor codeStreamTools, use for codedFixedValueFvPatchScalarField 2011-02-22 15:01:20 +01:00
d9a1d9c5bd ENH: codeStream: derive input binary/ascii format. (though use of #codeStream in binary field?) 2011-02-22 12:16:29 +00:00
4aa279d7bc ENH: use HashTable for mapping codeStream entries
- write intermediate code to _SHA1 directories
- add Test-codeStream
2011-02-22 12:34:20 +01:00
ba873744f3 ENH: add stringOps namespace with a collection of string-related ops 2011-02-22 10:20:55 +01:00
d6874f0fce ENH: codeStream, codedFixedValue: renamed. added template directory. 2011-02-21 14:33:14 +00:00
7542b9b53b COMP: codeStream.C: added cast 2011-02-21 11:56:51 +00:00
5538eb4f95 ENH: #codeStream : new functionEntry 2011-02-21 10:13:01 +00:00