-//
-// source.hh -- part of LilyPond
-//
-// (c) 1997--2003 Jan Nieuwenhuizen <janneke@gnu.org>
+/*
+ source.hh -- part of LilyPond
+
+ (c) 1997--2006 Jan Nieuwenhuizen <janneke@gnu.org>
+*/
#ifndef SOURCE_HH
#define SOURCE_HH
-#include "cons.hh"
-#include "flower-proto.hh"
-/**
- a set of sourcefiles.
+#include "flower-proto.hh"
+#include "std-vector.hh"
- TODO:
- */
-class Sources
+/* A set of sourcefiles. */
+class Sources
{
- Sources (Sources const&) {}
+ Sources (Sources const &) {}
+ vector<Source_file*> sourcefiles_;
+ bool is_binary_;
+
public:
Sources ();
~Sources ();
- Source_file * get_file (String &filename );
- Source_file* get_sourcefile (char const* str0 );
- void add (Source_file* sourcefile );
- void set_path (File_path*p);
+ Source_file *get_file (string *file_name);
+ Source_file *get_sourcefile (char const *);
+ void add (Source_file *sourcefile);
+ void set_path (File_path *);
void set_binary (bool);
- const File_path * path_C_;
-private:
- Cons<Source_file> *sourcefile_p_list_;
- bool binary_b_ ;
+ const File_path *path_;
};
-
-
-#endif // SOURCE_HH //
+#endif /* SOURCE_HH */