![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2011 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00011 00012 #pragma once 00013 00014 #include <makArchives/DtEnvironmentRecord.h> 00015 00016 #include "DtCloudDriverCommon.h" 00017 00018 namespace makVrv 00019 { 00020 namespace vrvExampleCloudDriver 00021 { 00024 class DtCloudParser 00025 { 00026 public: 00028 DtCloudParser(); 00029 00031 ~DtCloudParser(); 00032 00034 bool parseFile(std::string fn); 00035 00037 const makArchives::DtEnvironmentRecord::CloudLayerRecordList& 00038 cloudLayers() const; 00039 00041 const WindList& windList() const; 00042 00043 protected: 00046 void parseLine(std::string line); 00047 00049 void parseCloud(std::string& line); 00050 00052 void parseWind(std::string& line); 00053 00055 void tokenize(const std::string& line, std::vector<std::string>& list); 00056 00057 makArchives::DtEnvironmentRecord::CloudLayerRecordList myCloudLayers; 00058 WindList myWindList; 00059 }; 00060 } 00061 }