blob: 645b06bc96f419f2537d4f4524278158d1b162d7 (
plain) (
blame)
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vespalib/stllike/string.h>
namespace search::attribute {
class BaseName : public vespalib::string
{
public:
using string = vespalib::string;
BaseName(vespalib::stringref s);
BaseName(vespalib::stringref base, vespalib::stringref name);
BaseName & operator = (vespalib::stringref s);
~BaseName();
const string & getAttributeName() const { return _name; }
string getDirName() const;
private:
static string createAttributeName(vespalib::stringref s);
string _name;
};
}
|