File: objstruct.h

package info (click to toggle)
icmake 13.05.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,132 kB
  • sloc: cpp: 11,595; fortran: 883; makefile: 853; sh: 546; pascal: 342
file content (40 lines) | stat: -rw-r--r-- 1,090 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef INCLUDED_OBJSTRUCT_
#define INCLUDED_OBJSTRUCT_

#include <iosfwd>
#include <filesystem>

#include "../support/support.h"

class ObjStruct: private Support
{
    using Path          = std::filesystem::path;

    bool d_compile;
    Path d_parent;
    Path d_objName;

    public:
        ObjStruct(std::string const &modName, Path const &source, 
                  std::string const &objDir, std::string const &objNr);

        void setCompile();                                              // .f

        bool compile() const;                                           // .f
        Path const &parent() const;                                     // .f
        Path const &objName() const;                                    // .f

    private:

        void setCompile(std::string const &modName, 
                        Path const &sourceFilename);

        Path setObjName(Path const &source, std::string const &objDir, 
                        std::string const &nr);

        static std::string parents(std::string const &source);
};
        
#include "objstruct.f"

#endif