Welcome to mirror list, hosted at ThFree Co, Russian Federation.

feature_loader.hpp « indexer - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 59456adbc72c0feaea6ea9563313d00ec53da201 (plain)
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
#pragma once
#include "feature_loader_base.hpp"


namespace feature
{
  class LoaderCurrent : public LoaderBase
  {
    typedef LoaderBase BaseT;

    /// Get the index for geometry serialization.
    /// @param[in]  scale:
    /// -1 : index for the best geometry
    /// -2 : index for the worst geometry
    /// default : needed geometry
    //@{
    int GetScaleIndex(int scale) const;
    int GetScaleIndex(int scale, offsets_t const & offsets) const;
    //@}

  public:
    LoaderCurrent(SharedLoadInfo const & info) : BaseT(info) {}

    virtual uint8_t GetHeader();

    virtual void ParseTypes();
    virtual void ParseCommon();
    virtual void ParseHeader2();
    virtual uint32_t ParseGeometry(int scale);
    virtual uint32_t ParseTriangles(int scale);
  };
}