feat: add file templates

This commit is contained in:
David 2020-11-10 14:48:19 +01:00
parent 60aea94875
commit aa3a983db3
No known key found for this signature in database
GPG Key ID: 38503F7F2A1C3EE8
10 changed files with 147 additions and 0 deletions

View File

@ -0,0 +1,10 @@
/**
* @author : {{NAME}} ({{EMAIL}})
* @file : {{FILE}}
* @license : {{LICENSE}}
* @created : {{TIMESTAMP}}
*/
#include "{{FILE}}.h"
{{CURSORS}}

View File

@ -0,0 +1,17 @@
/**
* @author : {{NAME}} ({{EMAIL}})
* @file : {{FILE}}
* @license : {{LICENSE}}
* @created : {{TIMESTAMP}}
*/
#include "{{FILE}}.hpp"
{{CAMEL_CLASS}}::{{CAMEL_CLASS}}()
{
{{CURSOR}}
}
{{CAMEL_CLASS}}::~{{CAMEL_CLASS}}()
{
}

View File

@ -0,0 +1,15 @@
/**
* @author : {{NAME}} ({{EMAIL}})
* @file : {{FILE}}
* @license : {{LICENSE}}
* @created : {{TIMESTAMP}}
*/
#ifndef {{MACRO_GUARD}}
#define {{MACRO_GUARD}}
{{CURSOR}}
#endif /* end of include guard {{MACRO_GUARD}} */

View File

@ -0,0 +1,22 @@
/**
* @author : {{NAME}} ({{EMAIL}})
* @file : {{FILE}}
* @license : {{LICENSE}}
* @created : {{TIMESTAMP}}
*/
#ifndef {{MACRO_GUARD}}
#define {{MACRO_GUARD}}
class {{CAMEL_CLASS}}
{
public:
{{CAMEL_CLASS}}({{CURSOR}});
virtual ~{{CAMEL_CLASS}}();
private:
/* private data */
};
#endif /* end of include guard {{MACRO_GUARD}} */

View File

@ -0,0 +1,14 @@
/**
* @author : {{NAME}} ({{EMAIL}})
* @file : {{FILE}}
* @license : {{LICENSE}}
* @created : {{TIMESTAMP}}
*/
#include <stdio.h>
int main()
{
{{CURSOR}}
return 0;
}

View File

@ -0,0 +1,14 @@
/**
* @author : {{NAME}} ({{EMAIL}})
* @file : {{FILE}}
* @license : {{LICENSE}}
* @created : {{TIMESTAMP}}
*/
#include <iostream>
int main()
{
{{CURSOR}}
return 0;
}

View File

@ -0,0 +1,28 @@
######################################################################
# @author : {{NAME}} ({{EMAIL}})
# @file : {{FILE}}
# @license : {{LICENSE}}
# @created : {{TIMESTAMP}}
######################################################################
IDIR =./include
CC=gcc
CFLAGS=-I$(IDIR)
ODIR=obj
LIBS=
_OBJ = main.o {{CURSOR}}
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
main: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
.PHONY: clean
clean:
rm -f $(ODIR)/*.o

View File

@ -0,0 +1,11 @@
#! /usr/bin/env python
#
# @author : {{NAME}} ({{EMAIL}})
# @file : {{FILE}}
# @license : {{LICENSE}}
# @created : {{TIMESTAMP}}
#
"""
{{CURSOR}}
"""

View File

@ -0,0 +1,12 @@
#!/usr/bin/env sh
######################################################################
# @author : {{NAME}} ({{EMAIL}})
# @file : {{FILE}}
# @license : {{LICENSE}}
# @created : {{TIMESTAMP}}
#
# @description : {{CURSOR}}
######################################################################

View File

@ -0,0 +1,4 @@
" Author : {{NAME}}
" Created : {{TODAY}}
" License : {{LICENSE}}
" Description : {{CURSOR}}