Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
bcRec Class Reference
Collaboration diagram for bcRec:

Public Member Functions

 bcRec (int n)
 
void addLine (string l)
 
string getString (string insert) const
 
bool hasNumber (int n) const
 

Private Attributes

int bcNo
 
bool foundLoc
 
string pre
 
string post
 

Detailed Description

Definition at line 63 of file writeflo.cpp.

Constructor & Destructor Documentation

bcRec ( int  n)
inline

Definition at line 68 of file writeflo.cpp.

69  :bcNo(n),foundLoc(false),pre(""),post("") { }
int bcNo
Definition: writeflo.cpp:64
string pre
Definition: writeflo.cpp:66
string post
Definition: writeflo.cpp:66
const NT & n
bool foundLoc
Definition: writeflo.cpp:65

Member Function Documentation

void addLine ( string  l)
inline

Definition at line 70 of file writeflo.cpp.

References foundLoc, post, and pre.

Referenced by bcList::bcList().

70  {
71  if (!foundLoc)
72  { //Check the line for a location marker
73  int loc=l.find("$");
74  if (loc==-1)
75  pre+=l; //no marker
76  else { //We found the marker!
77  foundLoc=true;
78  pre+=l.substr(0,loc);
79  post+=l.substr(loc+1);
80  }
81  }
82  else //Already found the marker
83  post+=l;//Just append
84  }
string pre
Definition: writeflo.cpp:66
string post
Definition: writeflo.cpp:66
bool foundLoc
Definition: writeflo.cpp:65

Here is the caller graph for this function:

string getString ( string  insert) const
inline

Definition at line 85 of file writeflo.cpp.

References post, and pre.

85  {
86  return pre+insert+post;
87  }
string pre
Definition: writeflo.cpp:66
string post
Definition: writeflo.cpp:66
bool hasNumber ( int  n) const
inline

Definition at line 88 of file writeflo.cpp.

References bcNo.

88 { return n==bcNo; }
int bcNo
Definition: writeflo.cpp:64
const NT & n

Member Data Documentation

int bcNo
private

Definition at line 64 of file writeflo.cpp.

Referenced by hasNumber().

bool foundLoc
private

Definition at line 65 of file writeflo.cpp.

Referenced by addLine().

string post
private

Definition at line 66 of file writeflo.cpp.

Referenced by addLine(), and getString().

string pre
private

Definition at line 66 of file writeflo.cpp.

Referenced by addLine(), and getString().


The documentation for this class was generated from the following file: