Synopsis - Cross-Reference
File: /Synopsis/Parsers/Cxx/common.hh1// 2// Copyright (C) 2002 Stephen Davies 3// Copyright (C) 2002 Stefan Seefeld 4// All rights reserved. 5// Licensed to the public under the terms of the GNU LGPL (>= 2), 6// see the file COPYING for details. 7// 8 9#ifndef common_hh_ 10#define common_hh_ 11 12#include <string> 13#include <vector> 14 15//. A scoped name, containing zero or more elements. This typedef makes it 16//. easier to use scoped name types, and also makes it clearer than using the 17//. raw vector in your code. 18typedef std::vector<std::string> ScopedName; 19 20//. Prototype for scoped name output operator (defined in builder.cc) 21std::ostream& operator <<(std::ostream& out, const ScopedName& name); 22 23//. Joins the elements of the scoped name using the separator string 24std::string join(const ScopedName& strs, const std::string& sep = " "); 25 26#endif