VR-Forces 4.0.4 Class Documentation
examples/exampleCloudDriver/DtCloudParser.h
Go to the documentation of this file.
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 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)