https://github.com/tomibennett/cpp-creation-file-class
https://github.com/tomibennett/cpp-creation-file-class
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomibennett/cpp-creation-file-class
- Owner: tomibennett
- Created: 2014-11-04T15:48:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-05T20:56:42.000Z (over 11 years ago)
- Last Synced: 2025-03-24T22:43:00.825Z (about 1 year ago)
- Language: Shell
- Size: 147 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#cpp file’s class creation script
```
$>ls -Rl
.:
total0
$>./templ example
$> ls -Rl
./include:
total 4
-rw-r--r-- 1 n0t n0t 385 Nov 4 16:42 example.hpp
./src:
total 4
-rw-r--r-- 1 n0t n0t 311 Nov 4 16:42 example.cpp
$> cat include/example.hpp
```
```
/*
* Example.cpp for project [...]
*
* made by Thomas 'magneto' Nieto
*/
#ifndef _EXAMPLE_HPP_
#define _EXAMPLE_HPP_
class Example {
private:
//attributes
public:
//ctors & dtors
Example();
Example(const Example&);
Example& operator=(const Example&);
~Example();
//functions members
};
#endif // _EXAMPLE_HPP
```
```
$> cat src/example.cpp
```
```
/*
* Example for project [...]
*
* made by
*/
#include "Example.hpp"
//ctors & dtors
Example::Example() {}
Example::Example(const Example& oth) {}
Example& Example::operator=(const Example& rht) {}
Example::~Example() {}
// members functions
```