Removed Cint support.

This commit is contained in:
henry
2009-06-23 12:13:33 +01:00
parent 9418392975
commit 28258d11bd
11 changed files with 29 additions and 51 deletions

View File

@ -83,8 +83,6 @@ class objectRegistry;
Class IOobject Declaration Class IOobject Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "CintDefs.H"
class IOobject class IOobject
{ {
@ -395,7 +393,6 @@ public:
void operator=(const IOobject&); void operator=(const IOobject&);
}; };
#include "CintUndefs.H"
#if defined (__GNUC__) #if defined (__GNUC__)
template<> template<>

View File

@ -74,8 +74,6 @@ namespace Foam
Class IOstream Declaration Class IOstream Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "CintDefs.H"
class IOstream class IOstream
{ {
@ -543,7 +541,6 @@ public:
} }
}; };
#include "CintUndefs.H"
Ostream& operator<<(Ostream& os, const IOstream::streamFormat& sf); Ostream& operator<<(Ostream& os, const IOstream::streamFormat& sf);
Ostream& operator<<(Ostream& os, const IOstream::versionNumber& vn); Ostream& operator<<(Ostream& os, const IOstream::versionNumber& vn);

View File

@ -70,6 +70,7 @@ protected:
//- Current indent level //- Current indent level
unsigned short indentLevel_; unsigned short indentLevel_;
public: public:
// Constructors // Constructors
@ -87,10 +88,9 @@ public:
{} {}
// Destructor //- Destructor
virtual ~Ostream()
virtual ~Ostream() {}
{}
// Member functions // Member functions

View File

@ -98,6 +98,12 @@ public:
} }
// Destructor
virtual ~ITstream()
{}
// Member functions // Member functions
// Inquiry // Inquiry
@ -142,31 +148,31 @@ public:
// Read functions // Read functions
//- Return next token from stream //- Return next token from stream
Istream& read(token&); virtual Istream& read(token&);
//- Read a character //- Read a character
Istream& read(char&); virtual Istream& read(char&);
//- Read a word //- Read a word
Istream& read(word&); virtual Istream& read(word&);
// Read a string (including enclosing double-quotes) // Read a string (including enclosing double-quotes)
Istream& read(string&); virtual Istream& read(string&);
//- Read a label //- Read a label
Istream& read(label&); virtual Istream& read(label&);
//- Read a floatScalar //- Read a floatScalar
Istream& read(floatScalar&); virtual Istream& read(floatScalar&);
//- Read a doubleScalar //- Read a doubleScalar
Istream& read(doubleScalar&); virtual Istream& read(doubleScalar&);
//- Read binary block //- Read binary block
Istream& read(char*, std::streamsize); virtual Istream& read(char*, std::streamsize);
//- Rewind and return the stream so that it may be read again //- Rewind and return the stream so that it may be read again
Istream& rewind(); virtual Istream& rewind();
// Edit // Edit

View File

@ -66,8 +66,6 @@ Ostream& operator<<(Ostream&, const token&);
Class token Declaration Class token Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "CintDefs.H"
class token class token
{ {
@ -429,7 +427,6 @@ public:
friend ostream& operator<<(ostream&, const InfoProxy<token>&); friend ostream& operator<<(ostream&, const InfoProxy<token>&);
}; };
#include "CintUndefs.H"
Ostream& operator<<(Ostream&, const token::punctuationToken&); Ostream& operator<<(Ostream&, const token::punctuationToken&);
ostream& operator<<(ostream&, const token::punctuationToken&); ostream& operator<<(ostream&, const token::punctuationToken&);

View File

@ -80,7 +80,7 @@ class includeEntry
public: public:
//- Runtime type information //- Runtime type information
TypeName("include"); ClassName("include");
// Member Functions // Member Functions

View File

@ -96,7 +96,7 @@ class inputModeEntry
public: public:
//- Runtime type information //- Runtime type information
TypeName("inputMode"); ClassName("inputMode");
// Member Functions // Member Functions
@ -118,7 +118,6 @@ public:
//- Return true if the inputMode is %error //- Return true if the inputMode is %error
static bool error(); static bool error();
}; };

View File

@ -74,7 +74,7 @@ class removeEntry
public: public:
//- Runtime type information //- Runtime type information
TypeName("remove"); ClassName("remove");
// Member Functions // Member Functions

View File

@ -66,9 +66,6 @@ class primitiveEntry
public entry, public entry,
public ITstream public ITstream
{ {
public:
// Private member functions // Private member functions
//- Append the given token to this entry //- Append the given token to this entry
@ -93,9 +90,6 @@ public:
Istream& Istream&
); );
//- Read tokens from the given stream
bool read(const dictionary&, Istream&);
//- Read the complete entry from the given stream //- Read the complete entry from the given stream
void readEntry(const dictionary&, Istream&); void readEntry(const dictionary&, Istream&);
@ -169,6 +163,9 @@ public:
// calling this function generates a FatalError // calling this function generates a FatalError
dictionary& dict(); dictionary& dict();
//- Read tokens from the given stream
bool read(const dictionary&, Istream&);
// Write // Write
void write(Ostream&) const; void write(Ostream&) const;

View File

@ -62,12 +62,10 @@ Istream& operator>>(Istream&, DynamicField<Type>&);
Class DynamicField Declaration Class DynamicField Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "CintDefs.H"
template<class Type> template<class Type>
class DynamicField class DynamicField
: :
public Field<Type> //private Field<Type> public Field<Type>
{ {
// Private data // Private data
@ -185,26 +183,16 @@ public:
// IOstream operators // IOstream operators
friend Ostream& operator<< friend Ostream& operator<< <Type>
#ifndef __CINT__
<Type>
#endif
(Ostream&, const DynamicField<Type>&); (Ostream&, const DynamicField<Type>&);
friend Ostream& operator<< friend Ostream& operator<< <Type>
#ifndef __CINT__
<Type>
#endif
(Ostream&, const tmp<DynamicField<Type> >&); (Ostream&, const tmp<DynamicField<Type> >&);
friend Istream& operator>> friend Istream& operator>> <Type>
#ifndef __CINT__
<Type>
#endif
(Istream&, DynamicField<Type>&); (Istream&, DynamicField<Type>&);
}; };
#include "CintUndefs.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -75,8 +75,6 @@ class dictionary;
Class Field Declaration Class Field Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "CintDefs.H"
template<class Type> template<class Type>
class Field class Field
: :
@ -348,7 +346,6 @@ public:
(Ostream&, const tmp<Field<Type> >&); (Ostream&, const tmp<Field<Type> >&);
}; };
#include "CintUndefs.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //