/[Sims3RigEditor]/trunk/gr2lib_cpp/grannyfile.cpp
ViewVC logotype

Annotation of /trunk/gr2lib_cpp/grannyfile.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5 - (hide annotations) (download)
Thu Jul 29 17:25:37 2010 UTC (10 years ago) by william
File size: 1056 byte(s)
initial commit --

** Started implementing native unmanaged <=> managed conversion

1 william 5 #include "StdAfx.h"
2     #include "grannyfile.h"
3     #include "granny.h"
4    
5     #include <stdio.h>
6     #include <iostream>
7     #include <stdlib.h>
8     #include <assert.h>
9    
10     namespace gr2lib
11     {
12     namespace core
13     {
14     grannyfile::grannyfile(const char* filename)
15     {
16     GrannyAPIVersion = new apiversion::granny2apiversion();
17     _GrannyFilename = filename;
18     grannyfile::parse_granny_file();
19    
20     }
21     grannyfile::grannyfile(const char* filename,granny_int32x ExpectedMajor, granny_int32x ExpectedMinor, granny_int32x ExpectedCustomization, granny_int32x ExpectedBuild)
22     {
23     GrannyAPIVersion = new apiversion::granny2apiversion(ExpectedMajor,ExpectedMinor,ExpectedCustomization,ExpectedBuild);
24     _GrannyFilename = filename;
25     grannyfile::parse_granny_file();
26     }
27     void grannyfile::parse_granny_file()
28     {
29     _grn_file = GrannyReadEntireFile(_GrannyFilename);
30     if (_grn_file != 0)
31     {
32     GrannyFileInfo = GrannyGetFileInfo(_grn_file);
33     }
34    
35    
36    
37     }
38     const char* grannyfile::GrannyFilename()
39     {
40     return _GrannyFilename;
41     }
42     }
43     }

  ViewVC Help
Powered by ViewVC 1.1.22