66 std::vector<int> stuntDoubleIndex) :
68 stuntDoubleIndex_(stuntDoubleIndex), filename_(filename) {
73 inFile_ =
new std::ifstream(filename_.c_str(),
74 ifstream::in | ifstream::binary);
76 if (inFile_->fail()) {
77 snprintf(painCave.errMsg, MAX_SIM_ERROR_MSG_LENGTH,
78 "RestReader: Cannot open file: %s\n", filename_.c_str());
85 strcpy(checkPointMsg,
"Reference file opened for reading successfully.");
90 void readReferenceStructure(
void);
102 strcpy(checkPointMsg,
"Reference file closed successfully.");
108 void parseDumpLine(
const std::string& line);
109 void readStuntDoubles(std::istream& inpuStream);
110 void readFrameProperties(std::istream& inputStream);
117 std::vector<Vector3d> all_pos_;
118 std::vector<int> stuntDoubleIndex_;
120 std::istream* inFile_;
121 std::string filename_;
125 const static int bufferSize = 4096;
126 char buffer[bufferSize];