diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 18:59:29 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 18:59:29 (GMT) |
commit | d4d595fa7fb12903db9227d33d48b2b00120dbd1 (patch) | |
tree | 7d18365de0d6d1b29399b6a17c7eb01c2eb3ed49 /tksao/frame/tag.h | |
parent | 949f96e29bfe0bd8710d775ce220e597064e2589 (diff) | |
download | blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.zip blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.tar.gz blt-d4d595fa7fb12903db9227d33d48b2b00120dbd1.tar.bz2 |
Initial commit
Diffstat (limited to 'tksao/frame/tag.h')
-rw-r--r-- | tksao/frame/tag.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tksao/frame/tag.h b/tksao/frame/tag.h new file mode 100644 index 0000000..43a98d2 --- /dev/null +++ b/tksao/frame/tag.h @@ -0,0 +1,33 @@ +// Copyright (C) 1999-2016 +// Smithsonian Astrophysical Observatory, Cambridge, MA, USA +// For conditions of distribution and use, see copyright notice in "copyright" + +#ifndef __tag_h__ +#define __tag_h__ + +#include <iostream> +#include <sstream> +#include <iomanip> +using namespace std; + +class Tag { + char* tag_; + + Tag* previous_; + Tag* next_; + + public: + Tag(const char*); + Tag(const Tag&); + Tag& operator=(const Tag&); + ~Tag(); + + const char* tag() {return tag_;} + void set(const char*); + Tag* previous() {return previous_;} + void setPrevious(Tag* t) {previous_ = t;} + Tag* next() {return next_;} + void setNext(Tag* t) {next_ = t;} +}; + +#endif |