rmswell.hpp
Go to the documentation of this file.
1// $Id: rmswell.hpp 1068 2012-09-18 11:21:53Z perroe $
2
3// Copyright (c) 2011, Norwegian Computing Center
4// All rights reserved.
5// Redistribution and use in source and binary forms, with or without modification,
6// are permitted provided that the following conditions are met:
7// • Redistributions of source code must retain the above copyright notice, this
8// list of conditions and the following disclaimer.
9// • Redistributions in binary form must reproduce the above copyright notice, this list of
10// conditions and the following disclaimer in the documentation and/or other materials
11// provided with the distribution.
12// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
13// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
14// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
15// SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
16// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
17// OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
18// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
20// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21
22#ifndef NRLIB_RMSWELL_HPP
23#define NRLIB_RMSWELL_HPP
24
25#include <vector>
26#include <sstream>
27#include <map>
28
29#include "../exception/exception.hpp"
30#include "well.hpp"
31
32
33namespace NRLib {
34 class RMSWell : public Well
35 {
36 public:
39 RMSWell(const std::string& filename);
41 RMSWell(const Well& wellobj);
43 const std::map<int, std::string> GetDiscNames(const std::string& log_name) const;
45 void WriteToFile(const std::string& filename);
46
47 //protected:
48 //void SetNumberOfData(int n_data) { Well::SetNumberOfData(n_data) ;}
49
50 private:
52 std::map<std::string, std::map<int, std::string> > discnames_;
53 double xpos0_, ypos0_;
55 std::string line1_;
57 std::string line2_;
59 std::vector<std::string> lognames_;
61 std::vector<bool> isDiscrete_;
63 std::vector<std::string> unit_;
65 std::vector<std::string> scale_;
66
67 };
68
69
70}
71#endif
const char *const string
Definition: cJSON.h:170
Definition: rmswell.hpp:35
RMSWell(const std::string &filename)
void WriteToFile(const std::string &filename)
Write well to file.
RMSWell(const Well &wellobj)
Construct RMSWell from general well.
const std::map< int, std::string > GetDiscNames(const std::string &log_name) const
Get the discnames for discrete log with index.
Definition: NRLib/nrlib/well/well.hpp:30
Definition: exception.hpp:31