Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
Add license headers to files. Adapt include guards to KDevelop conven…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
mschuerig committed Jun 15, 2011
1 parent 12c33b1 commit fdcfe9c
Show file tree
Hide file tree
Showing 15 changed files with 289 additions and 52 deletions.
16 changes: 16 additions & 0 deletions src/DirectoryMetadata.cpp
@@ -1,3 +1,19 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


#include "DirectoryMetadata.h" #include "DirectoryMetadata.h"


Expand Down
22 changes: 19 additions & 3 deletions src/DirectoryMetadata.h
@@ -1,6 +1,22 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
#ifndef DIRECTORY_METADATA_H_INCLUDED_ This program is free software: you can redistribute it and/or modify
#define DIRECTORY_METADATA_H_INCLUDED_ it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef DIRECTORYMETADATA_H
#define DIRECTORYMETADATA_H


#include "NameShortener.h" #include "NameShortener.h"


Expand Down Expand Up @@ -76,4 +92,4 @@ class DirectoryMetadata : public boost::noncopyable {
const boost::shared_ptr<Etc> etc_; const boost::shared_ptr<Etc> etc_;
}; };


#endif // DIRECTORY_METADATA_H_INCLUDED_ #endif // DIRECTORYMETADATA_H
16 changes: 16 additions & 0 deletions src/Etc.cpp
@@ -1,3 +1,19 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


#include "Etc.h" #include "Etc.h"


Expand Down
22 changes: 19 additions & 3 deletions src/Etc.h
@@ -1,6 +1,22 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
#ifndef ETC_H_INCLUDED This program is free software: you can redistribute it and/or modify
#define ETC_H_INCLUDED it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef ETC_H
#define ETC_H


#include <sys/types.h> #include <sys/types.h>
#include <string> #include <string>
Expand All @@ -19,4 +35,4 @@ class Etc : public boost::noncopyable {
gid_t lookupGroupId(const std::string& group) const; gid_t lookupGroupId(const std::string& group) const;
}; };


#endif // ETC_H_INCLUDED #endif // ETC_H
22 changes: 19 additions & 3 deletions src/IdentityShortener.h
@@ -1,6 +1,22 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
#ifndef IDENTITY_SHORTENER_H_INCLUDED_ This program is free software: you can redistribute it and/or modify
#define IDENTITY_SHORTENER_H_INCLUDED_ it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef IDENTITYSHORTENER_H
#define IDENTITYSHORTENER_H


#include "NameShortener.h" #include "NameShortener.h"
#include <string> #include <string>
Expand All @@ -13,4 +29,4 @@ class IdentityShortener : public NameShortener
} }
}; };


#endif // IDENTITY_SHORTENER_H_INCLUDED_ #endif // IDENTITYSHORTENER_H
16 changes: 16 additions & 0 deletions src/MD5Shortener.cpp
@@ -1,3 +1,19 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


#include "MD5Shortener.h" #include "MD5Shortener.h"


Expand Down
23 changes: 19 additions & 4 deletions src/MD5Shortener.h
@@ -1,6 +1,22 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
#ifndef MD5_SHORTENER_INCLUDED_H_ This program is free software: you can redistribute it and/or modify
#define MD5_SHORTENER_INCLUDED_H_ it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef MD5SHORTENER_H
#define MD5SHORTENER_H


#include "NameShortener.h" #include "NameShortener.h"
#include <string> #include <string>
Expand All @@ -10,5 +26,4 @@ class MD5Shortener : public NameShortener {
virtual std::string shorten(const std::string& longName); virtual std::string shorten(const std::string& longName);
}; };


#endif // MD5_SHORTENER_INCLUDED_H_ #endif // MD5SHORTENER_H

22 changes: 19 additions & 3 deletions src/NameShortener.h
@@ -1,6 +1,22 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
#ifndef NAME_SHORTENER_INCLUDED_H_ This program is free software: you can redistribute it and/or modify
#define NAME_SHORTENER_INCLUDED_H_ it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef NAMESHORTENER_H
#define NAMESHORTENER_H


#include <string> #include <string>


Expand All @@ -22,4 +38,4 @@ class NameShortener {
virtual void doReset() {} virtual void doReset() {}
}; };


#endif // NAME_SHORTENER_INCLUDED_H_ #endif // NAMESHORTENER_H
16 changes: 16 additions & 0 deletions src/TruncatingShortener.cpp
@@ -1,3 +1,19 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


#include "TruncatingShortener.h" #include "TruncatingShortener.h"
#include <cassert> #include <cassert>
Expand Down
24 changes: 19 additions & 5 deletions src/TruncatingShortener.h
@@ -1,6 +1,22 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
#ifndef TRUNCATING_SHORTENER_INCLUDED_H_ This program is free software: you can redistribute it and/or modify
#define TRUNCATING_SHORTENER_INCLUDED_H_ it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef TRUNCATINGSHORTENER_H
#define TRUNCATINGSHORTENER_H


#include "NameShortener.h" #include "NameShortener.h"
#include <set> #include <set>
Expand All @@ -18,6 +34,4 @@ class TruncatingShortener : public NameShortener {
virtual void reset(); virtual void reset();
}; };


#endif // TRUNCATING_SHORTENER_INCLUDED_H_ #endif // TRUNCATINGSHORTENER_H


22 changes: 19 additions & 3 deletions src/algorithm.h
@@ -1,6 +1,22 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
#ifndef ALGORITHM_H_INCLUDED_ This program is free software: you can redistribute it and/or modify
#define ALGORITHM_H_INCLUDED_ it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef ALGORITHM_H
#define ALGORITHM_H


#include <map> #include <map>


Expand All @@ -22,4 +38,4 @@ index_by(const T& t, R T::value_type::*ptr_to_mem)


} // namespace algorithm } // namespace algorithm


#endif // ALGORITHM_H_INCLUDED_ #endif // ALGORITHM_H
16 changes: 16 additions & 0 deletions src/dirmeta.cpp
@@ -1,3 +1,19 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


#include <iostream> #include <iostream>
#include "DirectoryMetadata.h" #include "DirectoryMetadata.h"
Expand Down
16 changes: 16 additions & 0 deletions src/exception.cpp
@@ -1,3 +1,19 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


#include "exception.h" #include "exception.h"
#include <cstring> #include <cstring>
Expand Down
22 changes: 19 additions & 3 deletions src/exception.h
@@ -1,6 +1,22 @@
/*
Copyright (C) 2011 Michael Schuerig <michael@schuerig.de>
#ifndef EXCEPTION_H_INCLUDED_ This program is free software: you can redistribute it and/or modify
#define EXCEPTION_H_INCLUDED_ it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef EXCEPTION_H
#define EXCEPTION_H


#include <cerrno> #include <cerrno>
#include <string> #include <string>
Expand Down Expand Up @@ -49,4 +65,4 @@ class CatchAll : protected CatchAllBase {


} // namespace exception } // namespace exception


#endif // EXCEPTION_H_INCLUDED_ #endif // EXCEPTION_H

0 comments on commit fdcfe9c

Please sign in to comment.