KeyedFieldStack.h
Go to the documentation of this file.
1 #pragma once
2 
4 
6 {
7  class KeyedFieldStack : public FieldStack
8  {
9  private:
10 
15  const std::string& _key;
16 
17  public:
18 
25  KeyedFieldStack(const FieldStack& previous, const std::string& key)
26  : FieldStack(&previous), _key(key) { }
27 
33  virtual std::string GetLocation() const override
34  {
35  return GetPrevious()->GetLocation() + "." + _key;
36  }
37  };
38 }
39 
virtual std::string GetLocation() const =0
Construct the current location.
virtual std::string GetLocation() const override
Construct the current location.
KeyedFieldStack(const FieldStack &previous, const std::string &key)
Constructor.
const FieldStack * GetPrevious() const
Get the previus element in the stack.
Definition: FieldStack.h:24


swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48