Ejemplo n.º 1
0
 def __init__(self, path, name,
              ext = '.hpp',
              inner = None,
              banner = None,
              guard_begin = None,
              guard_end = None,
              year = None,
              comment ='//',
              fill = None
              ) :
     Banner.__init__(self, year, banner,comment=comment)
     Guard.__init__(self,path,name,ext,guard_begin,guard_end)
     self.__inner = Headers.inner_text if (inner is None) else inner
     self.__comment = comment
     self.__fill = comment[0] if fill == None else fill
Ejemplo n.º 2
0
 def __init__(self, path, name,
              ext = '.hpp',
              inner = None,
              banner = None,
              guard_begin = None,
              guard_end = None,
              year = None,
              comment ='//',
              fill = None
              ) :
     Nt2_base_infos.__init__(self)
     Banner.__init__(self, year, banner,comment=comment)
     Guard.__init__(self,path,name,ext=ext,
                    guard_begin=guard_begin,
                    guard_end=guard_end)
     self.__inner = Headers.inner_text if (inner is None) else inner
     self.__comment = comment
     self.__fill = comment[0] if fill == None else fill
Ejemplo n.º 3
0
def gen_proper_guard(path,name) :
    g = Guard(path,name)
    return g.get_guard_begin()