33 namespace functionEntries
58 Foam::string Foam::functionEntries::negEntry::negateVariable
60 const dictionary& parentDict,
65 const variable var(is);
68 const string varName = var(1, var.size() - 1);
71 const entry* ePtr = parentDict.lookupScopedEntryPtr(varName,
true,
false);
73 if (ePtr && ePtr->isStream())
75 const token variable(ePtr->stream());
78 OStringStream os(is.format());
80 const string str(os.str());
85 return str(1, str.size() - 1);
97 ) <<
"Illegal dictionary variable name " << varName <<
endl 98 <<
"Valid dictionary entries are " << parentDict.toc()
114 return insert(parentDict, negateVariable(parentDict, is));
125 return insert(parentDict, thisEntry, negateVariable(parentDict, is));
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
static bool execute(dictionary &parentDict, Istream &)
Execute the functionEntry in a sub-dict context.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
addToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream)
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read, written and printed, and the types and values of its tokens analysed.
static const string null
An empty string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Macros for easy insertion into member function selection tables.
A class for handling character strings derived from std::string.
defineTypeNameAndDebug(calcEntry, 0)