File: ncVlenType.h

package info (click to toggle)
netcdf-cxx 4.3.0%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,028 kB
  • sloc: sh: 11,553; cpp: 8,167; xml: 173; ansic: 134; makefile: 109
file content (58 lines) | stat: -rw-r--r-- 1,430 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include <string>
#include "ncType.h"
#include "netcdf.h"

#ifndef NcVlenTypeClass
#define NcVlenTypeClass


namespace netCDF
{
  class NcGroup;  // forward declaration.

  /*! Class represents a netCDF VLEN type */
  class NcVlenType : public NcType
  {
  public:

    /*! Constructor generates a \ref isNull "null object". */
    NcVlenType();

    /*! 
      Constructor.
      The vlen Type must already exist in the netCDF file. New netCDF vlen types can be added 
      using NcGroup::addNcVlenType();
      \param grp        The parent group where this type is defined.
      \param name       Name of new type.
    */
    NcVlenType(const NcGroup& grp, const std::string& name);

    /*! 
      Constructor.
      Constructs from the base type NcType object. Will throw an exception if the NcType is not the base of a Vlen type.
      \param ncType     A Nctype object.
    */
    NcVlenType(const NcType& ncType);

    /*! assignment operator */
    NcVlenType& operator=(const NcVlenType& rhs);
      
    /*! 
      Assignment operator.
      This assigns from the base type NcType object. Will throw an exception if the NcType is not the base of a Vlen type.
    */
    NcVlenType& operator=(const NcType& rhs);
      
    /*! The copy constructor. */
    NcVlenType(const NcVlenType& rhs);
      
    ~NcVlenType(){;}
      
    /*! Returns the base type. */
    NcType  getBaseType() const;
      
  };
  
}

#endif